We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Cygwin ~ $ ic 1.1.1.1/31 first host: 1.1.1.1/31 last host.: 1.1.1.2
The bug report for this initially:#17 The fix is not correct as seen above. This may be a fix for the above bug:
def host_first(self): if (self.version() == 4 and self.mask > 30) or \ (self.version() == 6 and self.mask > 126): -return self +return self.network() ... def host_last(self): """Last available host in this subnet.""" if (self.version() == 4 and self.mask == 32) or \ ... elif (self.version() == 4 and self.mask == 31) or \ (self.version() == 6 and self.mask == 127): -return IP(int(self) + 1, version=self.version()) +return IP(int(self.network()) + 1, version=self.version())
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Cygwin ~ $ ic 1.1.1.1/31
first host: 1.1.1.1/31
last host.: 1.1.1.2
The bug report for this initially:#17 The fix is not correct as seen above.
This may be a fix for the above bug:
The text was updated successfully, but these errors were encountered: