1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-23 23:38:21 +00:00

Fix issue when linking to more than one NAT node with allowed_interface option enabled. Fixes #1671

This commit is contained in:
grossmj 2019-10-31 17:07:52 +08:00
parent 5e9810d420
commit 2af9127879

View File

@ -189,7 +189,7 @@ def interfaces():
allowed_interfaces = allowed_interfaces.split(',')
net_if_addrs = psutil.net_if_addrs()
for interface in sorted(net_if_addrs.keys()):
if allowed_interfaces and interface not in allowed_interfaces:
if allowed_interfaces and interface not in allowed_interfaces and not interface.startswith("gns3tap"):
log.warning("Interface '{}' is not allowed to be used on this server".format(interface))
continue
ip_address = ""