projects
/
invirt/packages/invirt-vnc-server.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed VNC proxy to spew to stdout instead of an arbitrary logfile so that it will...
[invirt/packages/invirt-vnc-server.git]
/
code
/
vncproxy.py
diff --git
a/code/vncproxy.py
b/code/vncproxy.py
old mode 100644
(file)
new mode 100755
(executable)
index
06c1c79
..
c40570d
--- a/
code/vncproxy.py
+++ b/
code/vncproxy.py
@@
-1,7
+1,12
@@
#! /usr/bin/python
#! /usr/bin/python
-from twisted.internet import reactor
+from twisted.internet import reactor, ssl
import vncexternalauth
import vncexternalauth
+sslContext = ssl.DefaultOpenSSLContextFactory(
+ 'vncproxykey.pem',
+ 'vncproxy.crt',
+)
+
if '__main__' == __name__:
if '__main__' == __name__:
- reactor.listenTCP(10003,vncexternalauth.VNCAuthFactory("./vncauth.log", "localhost"))
+ reactor.listenSSL(10003,vncexternalauth.VNCAuthFactory("localhost"), contextFactory=sslContext)
reactor.run()
reactor.run()