mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
list_arp.py oops, forgot the hostname clause. for https://github.com/opnsense/core/issues/3595
This commit is contained in:
parent
35849fdc30
commit
f5c2f7760b
@ -44,7 +44,7 @@ if __name__ == '__main__':
|
||||
dhcpdleases = watchers.dhcpd.DHCPDLease()
|
||||
for lease in dhcpdleases.watch():
|
||||
if 'client-hostname' in lease and 'address' in lease:
|
||||
dhcp_leases[lease['address']] = lease['client-hostname']
|
||||
dhcp_leases[lease['address']] = {'hostname': lease['client-hostname']}
|
||||
|
||||
# parse arp output
|
||||
sp = subprocess.run(['/usr/sbin/arp', '-an'], capture_output=True, text=True)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user