Fix filtering special interfaces on Windows

This commit is contained in:
Julien Duponchelle 2016-11-16 12:21:43 +01:00
parent 56c580dc44
commit 6e5e9e3df9
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -238,8 +238,7 @@ def interfaces():
# This interface have special behavior
for result in results:
result["special"] = False
for special_interface in ("lo", "vmnet", "vboxnet", "docker", "lxcbr", "virbr", "ovs-system", "veth", "fw", "p2p", "bridge", "VMware", "VirtualBox"):
for special_interface in ("lo", "vmnet", "vboxnet", "docker", "lxcbr", "virbr", "ovs-system", "veth", "fw", "p2p", "bridge", "vmware", "virtualbox"):
if result["name"].lower().startswith(special_interface):
result["special"] = True
return results