mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-23 10:05:17 +00:00
Fix bug in admin socket where requests fail unless "arguments":{}
is specified in the JSON
This commit is contained in:
parent
98b0aaf747
commit
cfa293d189
@ -327,6 +327,7 @@ func (a *AdminSocket) handleRequest(conn net.Conn) {
|
||||
var buf json.RawMessage
|
||||
var req AdminSocketRequest
|
||||
var resp AdminSocketResponse
|
||||
req.Arguments = []byte("{}")
|
||||
if err := func() error {
|
||||
if err = decoder.Decode(&buf); err != nil {
|
||||
return fmt.Errorf("Failed to find request")
|
||||
|
Loading…
Reference in New Issue
Block a user