mirror of
https://github.com/xcat2/confluent.git
synced 2025-07-12 15:51:31 +00:00
Actually use the de-lla address
After removing the %, actually use the trimmed address.
This commit is contained in:
@ -51,7 +51,7 @@ def ip_on_same_subnet(first, second, prefix):
|
||||
if fam != addrinf[0]:
|
||||
return False
|
||||
txtaddr = addrinf[-1][0].split('%')[0]
|
||||
oip = socket.inet_pton(fam, addrinf[-1][0])
|
||||
oip = socket.inet_pton(fam, txtaddr)
|
||||
oip = int(codecs.encode(bytes(oip), 'hex'), 16)
|
||||
if fam == socket.AF_INET:
|
||||
addrlen = 32
|
||||
|
Reference in New Issue
Block a user