5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-25 03:45:42 +00:00

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 {
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 {
fmt.Println("Coords:", coords)
}