summaryrefslogtreecommitdiff
path: root/yaksh/code_server.py
diff options
context:
space:
mode:
authorankitjavalkar2015-12-02 17:49:35 +0530
committerankitjavalkar2015-12-04 15:25:35 +0530
commit134cae4ac57ee2bfca46851e6e3c749830ac8eb9 (patch)
tree1a80dcb6d545efd6d6977586ea3b249751cae54e /yaksh/code_server.py
parent74e6fa5b7c9749e00453d9fae3da62abf8694ab0 (diff)
downloadonline_test-134cae4ac57ee2bfca46851e6e3c749830ac8eb9.tar.gz
online_test-134cae4ac57ee2bfca46851e6e3c749830ac8eb9.tar.bz2
online_test-134cae4ac57ee2bfca46851e6e3c749830ac8eb9.zip
Add Dockerfile, modify docs and code_server
Diffstat (limited to 'yaksh/code_server.py')
-rwxr-xr-xyaksh/code_server.py4
1 files changed, 2 insertions, 2 deletions
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()