tehmaze/ipcalc

small typo prevents comparing IPs

Closed this issue · 1 comments

There is a typo in line 169:

    # Netmask is numeric CIDR subnet
    elif type(self.mask) in [int, long] or self.mask.isdigit():
        self.mask = int(mask) # typo!!!

The line should read:

        self.mask = int(self.mask)

Bumped on this too.