mirror of
https://github.com/yggdrasil-network/yggdrasil-go
synced 2024-11-10 07:20:39 +03:00
Remove friendlyname fields from yggdrasilctl
This commit is contained in:
parent
74de8c9416
commit
2056e75ad5
@ -256,13 +256,6 @@ func main() {
|
|||||||
if buildversion, ok := v.(map[string]interface{})["build_version"].(string); ok && buildversion != "unknown" {
|
if buildversion, ok := v.(map[string]interface{})["build_version"].(string); ok && buildversion != "unknown" {
|
||||||
fmt.Println("Build version:", buildversion)
|
fmt.Println("Build version:", buildversion)
|
||||||
}
|
}
|
||||||
if friendlyname, ok := v.(map[string]interface{})["friendly_name"].(string); ok {
|
|
||||||
if friendlyname == "" {
|
|
||||||
fmt.Println("Friendly name: (none)")
|
|
||||||
} else {
|
|
||||||
fmt.Println("Friendly name:", friendlyname)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
fmt.Println("IPv6 address:", k)
|
fmt.Println("IPv6 address:", k)
|
||||||
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user