We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 68596b5 + 7079654 commit 34752acCopy full SHA for 34752ac
netroute_test.go
@@ -32,7 +32,11 @@ func TestRoute(t *testing.T) {
32
for _, addr := range addrs {
33
if strings.HasPrefix(addr.Network(), "ip") {
34
_, ipn, _ := net.ParseCIDR(addr.String())
35
- if ipn.IP.To4() == nil && !ipn.IP.IsInterfaceLocalMulticast() && !ipn.IP.IsLinkLocalUnicast() && !ipn.IP.IsLinkLocalMulticast() {
+ if ipn.IP.To4() == nil &&
36
+ !ipn.IP.IsLoopback() &&
37
+ !ipn.IP.IsInterfaceLocalMulticast() &&
38
+ !ipn.IP.IsLinkLocalUnicast() &&
39
+ !ipn.IP.IsLinkLocalMulticast() {
40
hasV6 = true
41
break
42
}
0 commit comments