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 6817deb commit 2cbe26fCopy full SHA for 2cbe26f
client.go
@@ -712,6 +712,11 @@ func isPrivateIP(config Config, addr multiaddr.Multiaddr) bool {
712
return false
713
}
714
config.Logger.Infof("Extracted IP: %s", ipStr)
715
+ // Check for IPv6 loopback
716
+ if ipStr == "::1" {
717
+ return true
718
+ }
719
+
720
ip := net.ParseIP(ipStr)
721
if ip == nil || ip.To4() == nil {
722
@@ -738,10 +743,7 @@ func isPrivateIP(config Config, addr multiaddr.Multiaddr) bool {
738
743
return true
739
744
740
745
741
- if ip.Equal(net.IPv6loopback) { // ::1
742
- config.Logger.Infof("Found IPv6 loopback: %s", ip)
- return true
- }
746
747
748
749
0 commit comments