mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
parent
37832606c7
commit
7cee94e5cb
1 changed files with 0 additions and 3 deletions
|
@ -240,9 +240,6 @@ func (intf *link) close() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func linkInfoFor(linkType, sintf, remote string) linkInfo {
|
func linkInfoFor(linkType, sintf, remote string) linkInfo {
|
||||||
if h, _, err := net.SplitHostPort(remote); err == nil {
|
|
||||||
remote = h
|
|
||||||
}
|
|
||||||
return linkInfo{
|
return linkInfo{
|
||||||
linkType: linkType,
|
linkType: linkType,
|
||||||
local: sintf,
|
local: sintf,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue