Commit a7b93d11 authored by Jakub Sztandera's avatar Jakub Sztandera Committed by GitHub

Merge pull request #27 from jackkleeman/patch-1

Check for local ip6 addresses with more flexbility
parents 2b541b7f ee4ab587
......@@ -63,7 +63,7 @@ func IsIPLoopback(m ma.Multiaddr) bool {
}
// /ip6/::1
if IP6Loopback.Equal(m) || IP6LinkLocalLoopback.Equal(m) {
if !m.Decapsulate(IP6Loopback).Equal(m) || !m.Decapsulate(IP6LinkLocalLoopback).Equal(m) {
return true
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment