ip-address
ip-address copied to clipboard
Wildcard support?
It seems like this library doesn't support wildcard IP-addresses.
This was not obvious before the 7.0.0 release, since you didn't instantly fail the address in the constructor.
Now:
try {
const address = new Address4('192.168.0.*')
} catch (err) {
console.log(err) // AddressError: Invalid IPv4 address.
}
Why are wildcard IPs not considered valid? This made the change to ip-address v7 fail an important part of my application I'm afraid.
Hmm, apparently the asterix might not be a standard. So perhaps we've done something wrong instead.