Skip to content

Commit f130dc9

Browse files
committed
Fix loopback
1 parent f9aae61 commit f130dc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,9 +729,9 @@ func isPrivateIP(config Config, addr multiaddr.Multiaddr) bool {
729729
// IPv6
730730
{IP: net.ParseIP("fc00::"), Mask: net.CIDRMask(7, 128)}, // Unique local address
731731
{IP: net.ParseIP("fe80::"), Mask: net.CIDRMask(10, 128)}, // Link-local unicast
732-
{IP: net.ParseIP("::1"), Mask: net.CIDRMask(128, 128)}, // Loopback
732+
{IP: net.IPv6loopback, Mask: net.CIDRMask(128, 128)}, // Loopback }
733733
}
734-
734+
735735
// Check if the IP falls into any of the private ranges
736736
for _, r := range privateRanges {
737737
if r.Contains(ip) {

0 commit comments

Comments
 (0)