Fixed the init scripts and control file. Also, imported quentin's UNCOMMITTED CODE
[invirt/packages/invirt-vnc-server.git] / code / vncproxy.py
old mode 100644 (file)
new mode 100755 (executable)
index 06c1c79..310b8b5
@@ -1,7 +1,13 @@
 #! /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("./vncauth.log", "localhost"), contextFactory=sslContext)
+    #reactor.listenTCP(10003,vncexternalauth.VNCAuthFactory("./vncauth.log", "localhost"))
     reactor.run()
     reactor.run()