We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9547d0a commit 7c39c5cCopy full SHA for 7c39c5c
net/private.go
@@ -72,8 +72,6 @@ func IsPublicAddr(a ma.Multiaddr) bool {
72
switch c.Protocol().Code {
73
case ma.P_IP6ZONE:
74
return true
75
- default:
76
- return false
77
case ma.P_IP4:
78
ip := net.IP(c.RawValue())
79
isPublic = !inAddrRange(ip, Private4) && !inAddrRange(ip, Unroutable4)
@@ -93,8 +91,6 @@ func IsPrivateAddr(a ma.Multiaddr) bool {
93
91
94
92
95
96
97
98
99
isPrivate = inAddrRange(net.IP(c.RawValue()), Private4)
100
case ma.P_IP6:
0 commit comments