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

Wildcard support?

Open lekoaf opened this issue 5 years ago • 1 comments

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.

lekoaf avatar Oct 20 '20 07:10 lekoaf

Hmm, apparently the asterix might not be a standard. So perhaps we've done something wrong instead.

lekoaf avatar Oct 20 '20 07:10 lekoaf