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

Fix /0 IP mask being set to /32 or /128 #30

Merged
merged 1 commit into from
Jun 19, 2023

Commits on Jun 15, 2023

  1. fix /0 IP mask being treated as /32 or /128

    Checks "if not mask:" would return True if mask was set to 0.
    This would lead to mask being set to default value, which is /32 for
    IPv4 and /128 for IPv6, which is not the intended behaviour, since
    it prevented explicitly specifying full IP range (0.0.0.0/0).
    The mask would also not show up in dashboard.
    
    This commit fixes the issue by checking the mask values for equality
    to None.
    jakubman1 committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    a0d87cf View commit details
    Browse the repository at this point in the history