mirror of
https://github.com/xcat2/confluent.git
synced 2026-11-11 10:45:31 +00:00
Fix another error in the psutils work
This commit is contained in:
@@ -41,7 +41,7 @@ def mask_to_cidr(mask):
|
||||
fam = socket.AF_INET6
|
||||
cidr = 128
|
||||
maskn = socket.inet_pton(fam, mask)
|
||||
if len(maskn) == 4
|
||||
if len(maskn) == 4:
|
||||
maskn = struct.unpack('!I', maskn)[0]
|
||||
else:
|
||||
first, second = struct.unpack('!QQ', maskn)
|
||||
|
||||
Reference in New Issue
Block a user