mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-18 06:18:08 +00:00
Fix issue when linking to more than one NAT node with allowed_interface option enabled. Fixes #1671
This commit is contained in:
parent
5e9810d420
commit
2af9127879
@ -189,7 +189,7 @@ def interfaces():
|
|||||||
allowed_interfaces = allowed_interfaces.split(',')
|
allowed_interfaces = allowed_interfaces.split(',')
|
||||||
net_if_addrs = psutil.net_if_addrs()
|
net_if_addrs = psutil.net_if_addrs()
|
||||||
for interface in sorted(net_if_addrs.keys()):
|
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))
|
log.warning("Interface '{}' is not allowed to be used on this server".format(interface))
|
||||||
continue
|
continue
|
||||||
ip_address = ""
|
ip_address = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user