Use config instead of hardcoded port
[invirt/packages/invirt-web.git] / 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