From a6be4bacbc7fce1dd9fad827dfddccc1fe4ea383 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Mon, 26 Nov 2018 17:50:31 +0000 Subject: [PATCH] Don't show box_pub_key in tables --- yggdrasilctl.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/yggdrasilctl.go b/yggdrasilctl.go index b3b1cef..75f78f1 100644 --- a/yggdrasilctl.go +++ b/yggdrasilctl.go @@ -116,6 +116,9 @@ func main() { for slk, slv := range tlv.(map[string]interface{}) { if !keysOrdered { for k := range slv.(map[string]interface{}) { + if k == "box_pub_key" || k == "box_sig_key" { + continue + } keyOrder = append(keyOrder, fmt.Sprint(k)) } sort.Strings(keyOrder) @@ -182,6 +185,12 @@ func main() { if coords, ok := v.(map[string]interface{})["coords"].(string); ok { fmt.Println("Coords:", coords) } + if boxPubKey, ok := v.(map[string]interface{})["box_pub_key"].(string); ok { + fmt.Println("Public encryption key:", boxPubKey) + } + if boxSigKey, ok := v.(map[string]interface{})["box_sig_key"].(string); ok { + fmt.Println("Public signing key:", boxPubKey) + } } case "getswitchqueues": maximumqueuesize := float64(4194304)