Use config instead of hardcoded port
authorQuentin Smith <quentin@mit.edu>
Fri, 15 Jun 2018 03:18:27 +0000 (23:18 -0400)
committerQuentin Smith <quentin@mit.edu>
Fri, 15 Jun 2018 03:18:27 +0000 (23:18 -0400)
code/main.py

index b4e659e..a8926f2 100755 (executable)
@@ -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