mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-17 10:20:20 +00:00
Fix filtering special interfaces on Windows
This commit is contained in:
parent
56c580dc44
commit
6e5e9e3df9
@ -238,8 +238,7 @@ def interfaces():
|
|||||||
# This interface have special behavior
|
# This interface have special behavior
|
||||||
for result in results:
|
for result in results:
|
||||||
result["special"] = False
|
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):
|
if result["name"].lower().startswith(special_interface):
|
||||||
result["special"] = True
|
result["special"] = True
|
||||||
|
|
||||||
return results
|
return results
|
||||||
|
Loading…
Reference in New Issue
Block a user