From c94147724a5e8fbbb44cd2369df80f741b9f604c Mon Sep 17 00:00:00 2001 From: Quentin Smith Date: Thu, 14 Jun 2018 23:18:27 -0400 Subject: [PATCH] Use config instead of hardcoded port --- code/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.7.9.5