Skip to content

Commit a7b93d1

Browse files
authored
Merge pull request #27 from jackkleeman/patch-1
Check for local ip6 addresses with more flexbility
2 parents 2b541b7 + ee4ab58 commit a7b93d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ip.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func IsIPLoopback(m ma.Multiaddr) bool {
6363
}
6464

6565
// /ip6/::1
66-
if IP6Loopback.Equal(m) || IP6LinkLocalLoopback.Equal(m) {
66+
if !m.Decapsulate(IP6Loopback).Equal(m) || !m.Decapsulate(IP6LinkLocalLoopback).Equal(m) {
6767
return true
6868
}
6969

0 commit comments

Comments
 (0)