mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/arp-scan: multiple inet6 bug; closes #506
This commit is contained in:
committed by
Franco Fichtner
parent
5a081479f9
commit
8d7657b9fd
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user