5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-22 22:15:46 +00:00

Fix coords print

This commit is contained in:
Rubikoid 2022-03-17 02:43:28 +03:00 committed by Rubikoid
parent 42d4298e19
commit c19319df5e

View File

@ -300,7 +300,7 @@ func handleGetSelf(res map[string]interface{}, verbose bool) {
if boxSigKey, ok := v.(map[string]interface{})["key"].(string); ok {
fmt.Println("Public key:", boxSigKey)
}
if coords, ok := v.(map[string]interface{})["coords"].(string); ok {
if coords, ok := v.(map[string]interface{})["coords"].([]interface{}); ok {
fmt.Println("Coords:", coords)
}
if verbose {