fix domain name resolution for router
This commit is contained in:
@ -15,10 +15,7 @@ func Resolve(ctx context.Context, network, addr string, r resolver.Resolver, hos
|
||||
return addr, nil
|
||||
}
|
||||
|
||||
host, port, err := net.SplitHostPort(addr)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
host, port, _ := net.SplitHostPort(addr)
|
||||
if host == "" {
|
||||
return addr, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user