This commit is contained in:
vyzo 2018-10-16 19:09:34 +03:00 committed by Steven Allen
parent c2b139aab4
commit 7b43167897

View File

@ -65,7 +65,7 @@ func parseCIDR(cidrs []string) []*net.IPNet {
return ipnets return ipnets
} }
// IsPublicAddr retruns true if the IP part of the multiaddr is a publically routable address // IsPublicAddr retruns true if the IP part of the multiaddr is a publicly routable address
func IsPublicAddr(a ma.Multiaddr) bool { func IsPublicAddr(a ma.Multiaddr) bool {
ip, err := a.ValueForProtocol(ma.P_IP4) ip, err := a.ValueForProtocol(ma.P_IP4)
if err == nil { if err == nil {