mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 09:32:21 +00:00
Fix neighutil invocation of ipn_is_local
This commit is contained in:
parent
4a8af0ad85
commit
2bc2736da4
@ -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])))
|
||||
|
Loading…
Reference in New Issue
Block a user