mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-08-25 00:15:06 +03:00
Fixed subnet and coords replacing bug RIVM-34
This commit is contained in:
parent
9750f368ff
commit
c65717df6b
1 changed files with 2 additions and 2 deletions
|
@ -140,8 +140,8 @@ func (a *RestServer) apiSelfHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
"key": hex.EncodeToString(self.Key[:]),
|
"key": hex.EncodeToString(self.Key[:]),
|
||||||
"private_key": hex.EncodeToString(self.PrivateKey[:]),
|
"private_key": hex.EncodeToString(self.PrivateKey[:]),
|
||||||
"address": a.Core.Address().String(),
|
"address": a.Core.Address().String(),
|
||||||
"coords": snet.String(),
|
"coords": self.Coords,
|
||||||
"subnet": self.Coords,
|
"subnet": snet.String(),
|
||||||
}
|
}
|
||||||
b, err := json.Marshal(result)
|
b, err := json.Marshal(result)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue