diff --git a/component/dialer/bind.go b/component/dialer/bind.go index cb24a8b..55e5f16 100644 --- a/component/dialer/bind.go +++ b/component/dialer/bind.go @@ -52,6 +52,10 @@ func lookupUDPAddr(ip net.IP, addrs []net.Addr) (*net.UDPAddr, error) { } func fallbackBindToDialer(dialer *net.Dialer, network string, ip net.IP, name string) error { + if !ip.IsGlobalUnicast() { + return nil + } + iface, err := net.InterfaceByName(name) if err != nil { return err