This commit is contained in:
vyzo
2018-10-18 13:43:48 +01:00
committed by Steven Allen
parent c2b139aab4
commit 7b43167897
+1 -1
View File
@@ -65,7 +65,7 @@ func parseCIDR(cidrs []string) []*net.IPNet {
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 {
ip, err := a.ValueForProtocol(ma.P_IP4)
if err == nil {