Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unique Local Addresses and Private Addresses? #53

Open
laduke opened this issue Jul 17, 2017 · 1 comment
Open

Unique Local Addresses and Private Addresses? #53

laduke opened this issue Jul 17, 2017 · 1 comment

Comments

@laduke
Copy link

laduke commented Jul 17, 2017

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 laduke changed the title Unique local addresses and Private Addresses? Unique Local Addresses and Private Addresses? Jul 17, 2017
@beaugunderson
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants