5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-26 00:11:36 +00:00

Don't show box_pub_key in tables

This commit is contained in:
Neil Alexander 2018-11-26 17:50:31 +00:00
parent 8239989c36
commit a6be4bacbc
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -116,6 +116,9 @@ func main() {
for slk, slv := range tlv.(map[string]interface{}) { for slk, slv := range tlv.(map[string]interface{}) {
if !keysOrdered { if !keysOrdered {
for k := range slv.(map[string]interface{}) { for k := range slv.(map[string]interface{}) {
if k == "box_pub_key" || k == "box_sig_key" {
continue
}
keyOrder = append(keyOrder, fmt.Sprint(k)) keyOrder = append(keyOrder, fmt.Sprint(k))
} }
sort.Strings(keyOrder) sort.Strings(keyOrder)
@ -182,6 +185,12 @@ func main() {
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)
} }
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": case "getswitchqueues":
maximumqueuesize := float64(4194304) maximumqueuesize := float64(4194304)