summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-11-22 15:04:30 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-11-22 15:04:30 +0100
commit7579e0750c7bd81c916012e2842c8a96ad8fa414 (patch)
tree2c0f0b8b561182596b2fb38786efcc27ea635872 /pyLoadCore.py
parentindentation fix, 3nd try.. (diff)
downloadpyload-7579e0750c7bd81c916012e2842c8a96ad8fa414.tar.xz
secure xmlrpc
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 51a95169e..920278fe0 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -49,7 +49,7 @@ except ImportError:
from module.file_list import File_List
from module.thread_list import Thread_List
#from module.web.WebServer import WebServer
-from SimpleXMLRPCServer import SimpleXMLRPCServer as Server
+from module.remote.SecureXMLRPCServer import SecureXMLRPCServer
from module.network.Request import Request
import thread
@@ -253,7 +253,7 @@ class Core(object):
def init_server(self):
try:
- self.server = Server(("", 1337), allow_none=True)
+ self.server = SecureXMLRPCServer(("", 1337), "ssl.crt", "ssl.key", {"testuser":"testpw"})
self.server.register_function(self.status_downloads)
self.server.register_function(self.status_server)
self.server.register_function(self.kill)