diff --git a/cmd/yggdrasilctl/main.go b/cmd/yggdrasilctl/main.go index 8f99e0d..db82341 100644 --- a/cmd/yggdrasilctl/main.go +++ b/cmd/yggdrasilctl/main.go @@ -183,13 +183,13 @@ func run() int { if peer.Inbound { dir = "In" } - uri, err := url.Parse(peer.URI) - if err != nil { - panic(err) + uristring := peer.URI + if uri, err := url.Parse(peer.URI); err == nil { + uri.RawQuery = "" + uristring = uri.String() } - uri.RawQuery = "" table.Append([]string{ - uri.String(), + uristring, state, dir, peer.IPAddress,