1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-04-20 01:29:01 +00:00

Fix unable to add NAT cloud after configuring “allowed_interfaces” in configuration file. Fixes #2508

This commit is contained in:
grossmj 2025-04-16 16:04:57 +07:00
parent 5019167098
commit 773076c40e
No known key found for this signature in database
GPG Key ID: 1E7DD6DBB53FF3D7

View File

@ -37,7 +37,7 @@ class Nat(Cloud):
def __init__(self, name, node_id, project, manager, ports=None):
allowed_interfaces = Config.instance().settings.Server.allowed_interfaces
if allowed_interfaces:
if allowed_interfaces and isinstance(allowed_interfaces, str):
allowed_interfaces = allowed_interfaces.split(',')
if sys.platform.startswith("linux"):
nat_interface = Config.instance().settings.Server.default_nat_interface