We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68596b5 commit 7079654Copy full SHA for 7079654
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