diff --git a/net/arp-scan/src/opnsense/scripts/OPNsense/ARPscanner/IPtools.py b/net/arp-scan/src/opnsense/scripts/OPNsense/ARPscanner/IPtools.py index b8dfc3c0c..def919768 100644 --- a/net/arp-scan/src/opnsense/scripts/OPNsense/ARPscanner/IPtools.py +++ b/net/arp-scan/src/opnsense/scripts/OPNsense/ARPscanner/IPtools.py @@ -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",