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
old mode 100644 (file)
new mode 100755 (executable)
index 06c1c79..c40570d
@@ -1,7 +1,12 @@
 #! /usr/bin/python
-from twisted.internet import reactor
+from twisted.internet import reactor, ssl
 import vncexternalauth
 
+sslContext = ssl.DefaultOpenSSLContextFactory(
+       'vncproxykey.pem',
+       'vncproxy.crt',
+)
+
 if '__main__' == __name__:
-    reactor.listenTCP(10003,vncexternalauth.VNCAuthFactory("./vncauth.log", "localhost"))
+    reactor.listenSSL(10003,vncexternalauth.VNCAuthFactory("localhost"), contextFactory=sslContext)
     reactor.run()