func IsIANAReserved(ip net.IP) bool {
	if !ip.IsGlobalUnicast() {
		return true
	}

	for _, network := range reservedNetworks {
		if network.Contains(ip) {
			return true
		}
	}

	return false
}
func IsIANAReserved(ip net.IP) bool {
	if !ip.IsGlobalUnicast() {
		return true
	}

	for _, network := range reservedNetworks {
		if network.Contains(ip) {
			return true
		}
	}

	return false
}
func IsIANAReserved ( ip net . IP ) bool { if ! ip . IsGlobalUnicast ( ) { return true } for _ , network := range reservedNetworks { if network . Contains ( ip ) { return true } } return false }
// IsIANAReserved checks IP validity as per IANA reserved IPs
//      IPv4
//      https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml
//      https://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.xml
//      IPv6
//      https://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml
//      https://www.iana.org/assignments/ipv6-address-space/ipv6-address-space.xhtml
IsIANAReserved checks IP validity as per IANA reserved IPs IPv4 https : // www . iana . org / assignments / iana - ipv4 - special - registry / iana - ipv4 - special - registry . xhtml https : // www . iana . org / assignments / ipv4 - address - space / ipv4 - address - space . xml IPv6 https : // www . iana . org / assignments / iana - ipv6 - special - registry / iana - ipv6 - special - registry . xhtml https : // www . iana . org / assignments / ipv6 - address - space / ipv6 - address - space . xhtml