From 134cae4ac57ee2bfca46851e6e3c749830ac8eb9 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Wed, 2 Dec 2015 17:49:35 +0530 Subject: Add Dockerfile, modify docs and code_server --- yaksh/code_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'yaksh/code_server.py') diff --git a/yaksh/code_server.py b/yaksh/code_server.py index 2593752..faf9c0d 100755 --- a/yaksh/code_server.py +++ b/yaksh/code_server.py @@ -73,7 +73,7 @@ class CodeServer(object): def run(self): """Run XMLRPC server, serving our methods.""" - server = SimpleXMLRPCServer(("localhost", self.port)) + server = SimpleXMLRPCServer(("0.0.0.0", self.port)) self.server = server server.register_instance(self) self.queue.put(self.port) @@ -140,7 +140,7 @@ class ServerPool(object): """Run server which returns an available server port where code can be executed. """ - server = SimpleXMLRPCServer(("localhost", self.my_port)) + server = SimpleXMLRPCServer(("0.0.0.0", self.my_port)) self.server = server server.register_instance(self) server.serve_forever() -- cgit