From 2af9127879a2784b69dc32693aa9ab928539cf38 Mon Sep 17 00:00:00 2001 From: grossmj Date: Thu, 31 Oct 2019 17:07:52 +0800 Subject: [PATCH] Fix issue when linking to more than one NAT node with allowed_interface option enabled. Fixes #1671 --- gns3server/utils/interfaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/utils/interfaces.py b/gns3server/utils/interfaces.py index e39d6a3c..0431c5ad 100644 --- a/gns3server/utils/interfaces.py +++ b/gns3server/utils/interfaces.py @@ -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 = ""