5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-23 02:55:39 +00:00

Merge pull request #902 from Rubikoid/getself-fix-coords

Fix printing self coordinates in getself command of yggdrasilctl
This commit is contained in:
Neil Alexander 2022-07-07 18:15:27 +01:00 committed by GitHub
commit e4ec277683
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {