mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-22 05:55:14 +02:00
Improve remote server console host support when binding to 0.0.0.0
Fix https://github.com/GNS3/gns3-gui/issues/1574
This commit is contained in:
8 files changed
+55
-31
No files matched your search
+4
-3
@@ -145,8 +145,10 @@ def project(tmpdir):
|
||||
@pytest.fixture(scope="function")
|
||||
def port_manager():
|
||||
"""An instance of port manager"""
|
||||
|
||||
return PortManager("127.0.0.1")
|
||||
PortManager._instance = None
|
||||
p = PortManager.instance()
|
||||
p.console_host = "127.0.0.1"
|
||||
return p
|
||||
|
||||
|
||||
@pytest.fixture(scope="function")
|
||||
@@ -198,7 +200,6 @@ def run_around_tests(monkeypatch, port_manager, controller, config):
|
||||
for module in MODULES:
|
||||
module._instance = None
|
||||
|
||||
port_manager._instance = port_manager
|
||||
os.makedirs(os.path.join(tmppath, 'projects'))
|
||||
config.set("Server", "projects_path", os.path.join(tmppath, 'projects'))
|
||||
config.set("Server", "symbols_path", os.path.join(tmppath, 'symbols'))
|
||||
|
||||
Reference in new issue
Block a user