mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-12-23 00:35:39 +00:00
parent
180d7bf499
commit
81f2c711b4
@ -183,13 +183,13 @@ func run() int {
|
|||||||
if peer.Inbound {
|
if peer.Inbound {
|
||||||
dir = "In"
|
dir = "In"
|
||||||
}
|
}
|
||||||
uri, err := url.Parse(peer.URI)
|
uristring := peer.URI
|
||||||
if err != nil {
|
if uri, err := url.Parse(peer.URI); err == nil {
|
||||||
panic(err)
|
|
||||||
}
|
|
||||||
uri.RawQuery = ""
|
uri.RawQuery = ""
|
||||||
|
uristring = uri.String()
|
||||||
|
}
|
||||||
table.Append([]string{
|
table.Append([]string{
|
||||||
uri.String(),
|
uristring,
|
||||||
state,
|
state,
|
||||||
dir,
|
dir,
|
||||||
peer.IPAddress,
|
peer.IPAddress,
|
||||||
|
Loading…
Reference in New Issue
Block a user