ip-address
ip-address copied to clipboard
Unique Local Addresses and Private Addresses?
A unique local address (ULA) is an IPv6 address in the block fc00::/7, defined in RFC 4193. It is the approximate IPv6 counterpart of the IPv4 private address.
Are there functions to test these?
I mean for example:
new Address4("192.168.1.2").isPrivate() -> true
new Address4("8.8.8.8").isPrivate() -> false
For IPv6 I think it's just if the address starts with fc or fd (?)
@laduke there isn't; if you add the required entry to lib/v6/constants.js that would make them work in new Address6('fc00::1').getType() though :)