ip-address icon indicating copy to clipboard operation
ip-address copied to clipboard

Unique Local Addresses and Private Addresses?

Open laduke opened this issue 8 years ago • 1 comments

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 avatar Jul 17 '17 22:07 laduke

@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 :)

beaugunderson avatar Jul 21 '17 20:07 beaugunderson