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

Cannot construct with a IP network prefix as README.md suggests #27

Open
kwpeters opened this issue Nov 22, 2017 · 0 comments
Open

Cannot construct with a IP network prefix as README.md suggests #27

kwpeters opened this issue Nov 22, 2017 · 0 comments

Comments

@kwpeters
Copy link

README.md states that one of the ways a Netmask can be constructed is with the following parameters:

'216.240.32.0', 0xffffff00

The following code, however, causes an Error to be thrown:

var netmask = require("netmask");
var block = new netmask.Netmask('10.0.0.0', 0xffffff00);

The code that throws the error is here.

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