diff --git a/gns3server/run.py b/gns3server/run.py index 4e86e356..134d969d 100644 --- a/gns3server/run.py +++ b/gns3server/run.py @@ -112,7 +112,7 @@ def parse_arguments(argv): config = Config.instance().get_section_config("Server") defaults = { "host": config.get("host", "0.0.0.0"), - "port": config.get("port", 8000), + "port": config.get("port", 3080), "ssl": config.getboolean("ssl", False), "certfile": config.get("certfile", ""), "certkey": config.get("certkey", ""), diff --git a/scripts/remote-install.sh b/scripts/remote-install.sh index 61f7a683..d71f32a6 100644 --- a/scripts/remote-install.sh +++ b/scripts/remote-install.sh @@ -144,7 +144,7 @@ log "Setup GNS3 server" cat < /opt/gns3/gns3_server.conf [Server] host = 0.0.0.0 -port = 8000 +port = 3080 images_path = /opt/gns3/images projects_path = /opt/gns3/projects report_errors = True @@ -196,7 +196,7 @@ log "Setup VPN" cat < /opt/gns3/gns3_server.conf [Server] host = 172.16.253.1 -port = 8000 +port = 3080 images_path = /opt/gns3/images projects_path = /opt/gns3/projects report_errors = True diff --git a/tests/handlers/api/base.py b/tests/handlers/api/base.py index cfa9f848..680235f4 100644 --- a/tests/handlers/api/base.py +++ b/tests/handlers/api/base.py @@ -104,7 +104,7 @@ class Query: if path is None: return with open(self._example_file_path(method, route), 'w+') as f: - f.write("curl -i -X {} 'http://localhost:8000/v{}{}'".format(method, api_version, path)) + f.write("curl -i -X {} 'http://localhost:3080/v{}{}'".format(method, api_version, path)) if body: f.write(" -d '{}'".format(re.sub(r"\n", "", json.dumps(json.loads(body), sort_keys=True)))) f.write("\n\n") diff --git a/tests/test_run.py b/tests/test_run.py index 9c0c6a38..1f706847 100644 --- a/tests/test_run.py +++ b/tests/test_run.py @@ -77,7 +77,7 @@ def test_parse_arguments(capsys, tmpdir): assert run.parse_arguments([]).host == "192.168.1.2" assert run.parse_arguments(["--port", "8002"]).port == 8002 - assert run.parse_arguments([]).port == 8000 + assert run.parse_arguments([]).port == 3080 server_config["port"] = "8003" assert run.parse_arguments([]).port == 8003