beaugunderson / ip-address

💻 a library for parsing and manipulating IPv4 and IPv6 addresses in JavaScript
http://ip-address.js.org/
MIT License
580 stars 73 forks source link

IPv6 inaccuracies #172

Open wzrdtales opened 2 months ago

wzrdtales commented 2 months ago

There are three details that are not correct:

1) The comment of lastAddress for an IPv6 address says, this usually is a broadcast address. IPv6 does not have a broadcast, the doc should either reflect that or remove this comment to avoid ill informing users.

2) endAddressExclusive it will not respect the 128 anycast addresses at the top

3) endAddressExclusive it claims the broadcast address exists, correct is also the last address is valid.

beaugunderson commented 1 month ago

thanks for reporting @wzrdtales, for 2. and 3. can you be more explicit so I understand what needs to change?