projects
/
invirt/packages/invirt-web.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75c4a9e
)
Use config instead of hardcoded port
author
Quentin Smith
<quentin@mit.edu>
Fri, 15 Jun 2018 03:18:27 +0000
(23:18 -0400)
committer
Quentin Smith
<quentin@mit.edu>
Fri, 15 Jun 2018 03:18:27 +0000
(23:18 -0400)
code/main.py
patch
|
blob
|
history
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