fix forwarding node address parsing
This commit is contained in:
parent
f5a20fd0fc
commit
a465210bd6
@ -12,6 +12,11 @@ import (
|
||||
type AddrPortRange string
|
||||
|
||||
func (p AddrPortRange) Addrs() (addrs []string) {
|
||||
// ignore url scheme, e.g. http://, tls://, tcp://.
|
||||
if strings.Contains(string(p), "://") {
|
||||
return nil
|
||||
}
|
||||
|
||||
h, sp, err := net.SplitHostPort(string(p))
|
||||
if err != nil {
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user