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

Wildcard support? #117

Open
lekoaf opened this issue Oct 20, 2020 · 1 comment
Open

Wildcard support? #117

lekoaf opened this issue Oct 20, 2020 · 1 comment

Comments

@lekoaf
Copy link

lekoaf commented Oct 20, 2020

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
Copy link
Author

lekoaf commented Oct 20, 2020

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

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

1 participant