From: Quentin Smith Date: Fri, 15 Jun 2018 03:18:27 +0000 (-0400) Subject: Use config instead of hardcoded port X-Git-Tag: 0.1.57~10 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/c94147724a5e8fbbb44cd2369df80f741b9f604c Use config instead of hardcoded port --- diff --git a/code/main.py b/code/main.py index b4e659e..a8926f2 100755 --- a/code/main.py +++ b/code/main.py @@ -356,7 +356,7 @@ console will suffer artifacts. token = controls.vnctoken(machine) host = controls.listHost(machine) if host: - port = 10003 + [h.hostname for h in config.hosts].index(host) + port = config.vnc.base_port + [h.hostname for h in config.hosts].index(host) else: port = 5900 # dummy