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 f9aae61 commit f130dc9Copy full SHA for f130dc9
client.go
@@ -729,9 +729,9 @@ func isPrivateIP(config Config, addr multiaddr.Multiaddr) bool {
729
// IPv6
730
{IP: net.ParseIP("fc00::"), Mask: net.CIDRMask(7, 128)}, // Unique local address
731
{IP: net.ParseIP("fe80::"), Mask: net.CIDRMask(10, 128)}, // Link-local unicast
732
- {IP: net.ParseIP("::1"), Mask: net.CIDRMask(128, 128)}, // Loopback
+ {IP: net.IPv6loopback, Mask: net.CIDRMask(128, 128)}, // Loopback }
733
}
734
-
+
735
// Check if the IP falls into any of the private ranges
736
for _, r := range privateRanges {
737
if r.Contains(ip) {
0 commit comments