mirror of
https://github.com/opnsense/plugins.git
synced 2026-06-11 09:52:31 -04:00
net/arp-scan: multiple inet6 bug; closes #506
This commit is contained in:
parent
5a081479f9
commit
8d7657b9fd
1 changed files with 2 additions and 1 deletions
|
|
@ -166,7 +166,8 @@ class IPtools(object):
|
|||
)),
|
||||
flags=re.MULTILINE)
|
||||
|
||||
ifconfig = subprocess.check_output(["ifconfig", "-u"]).decode()
|
||||
ifconfig_raw = subprocess.check_output(["ifconfig", "-u"]).decode()
|
||||
ifconfig = '\n'.join([ i for i in ifconfig_raw.splitlines() if 'inet6' not in i])
|
||||
interfaces = pattern.findall(ifconfig)
|
||||
Interface = namedtuple("Interface", "name {mac} {ip}".format(
|
||||
mac="mac",
|
||||
|
|
|
|||
Loading…
Reference in a new issue