projects
/
invirt/packages/invirt-web.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use config instead of hardcoded port
[invirt/packages/invirt-web.git]
/
code
/
main.py
diff --git
a/code/main.py
b/code/main.py
index
b4e659e
..
a8926f2
100755
(executable)
--- 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