Include public key in yggdrasilctl getSelf output for v0.4 nodes

This commit is contained in:
Neil Alexander 2021-06-05 21:54:05 +01:00
parent 80b6bf0c78
commit d46a883020

View File

@ -291,6 +291,9 @@ func run() int {
if subnet, ok := v.(map[string]interface{})["subnet"].(string); ok { if subnet, ok := v.(map[string]interface{})["subnet"].(string); ok {
fmt.Println("IPv6 subnet:", subnet) fmt.Println("IPv6 subnet:", subnet)
} }
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"].(string); ok {
fmt.Println("Coords:", coords) fmt.Println("Coords:", coords)
} }