mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 14:45:07 +03:00
[Admin API] Fill Request
attribute in router response
This commit is contained in:
parent
1420ea5662
commit
97750705cd
1 changed files with 1 additions and 0 deletions
|
@ -350,6 +350,7 @@ func (a *AdminSocket) handleRequest(conn net.Conn) {
|
||||||
if resp.Response, err = json.Marshal(res); err != nil {
|
if resp.Response, err = json.Marshal(res); err != nil {
|
||||||
return fmt.Errorf("Failed to marshal response: %w", err)
|
return fmt.Errorf("Failed to marshal response: %w", err)
|
||||||
}
|
}
|
||||||
|
resp.Request = buf
|
||||||
resp.Status = "success"
|
resp.Status = "success"
|
||||||
return nil
|
return nil
|
||||||
}(); err != nil {
|
}(); err != nil {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue