mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 06:41:13 +02:00
Fix issue when linking to more than one NAT node with allowed_interface option enabled. Fixes #1671
This commit is contained in:
1 parent
5e9810d420
commit
2af9127879
1 file changed
+1
-1
@@ -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 = ""
|
||||
|
||||
Reference in new issue
Block a user