mirror of
https://github.com/xcat2/confluent.git
synced 2025-07-16 01:21:12 +00:00
Fix neighutil invocation of ipn_is_local
This commit is contained in:
@@ -97,7 +97,7 @@ def get_hwaddr(ipaddr):
|
||||
_update_neigh()
|
||||
updated = True
|
||||
hwaddr = neightable.get(ipaddr, None)
|
||||
if not hwaddr and not netutil.ip_is_local(ipaddr):
|
||||
if not hwaddr and not netutil.ipn_is_local(ipaddr):
|
||||
hwaddr = False
|
||||
if hwaddr == None and not updated:
|
||||
_update_neigh()
|
||||
@@ -109,4 +109,4 @@ def get_hwaddr(ipaddr):
|
||||
|
||||
if __name__ == '__main__':
|
||||
import sys
|
||||
print(repr(get_hwaddr(sys.argv[1])))
|
||||
print(repr(get_hwaddr(sys.argv[1])))
|
||||
|
Reference in New Issue
Block a user