diff options
author | Prabhu Ramachandran | 2016-01-13 15:57:35 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2016-01-13 15:57:35 +0530 |
commit | 3f037c26bc5c09ddfbd24930148233535770b38b (patch) | |
tree | 0f082aec10e8a0e90b84e73ff21eea01c35e5801 /yaksh | |
parent | 7d9beac8b3db3724b17ca2695672eb5ceae903f3 (diff) | |
parent | 134cae4ac57ee2bfca46851e6e3c749830ac8eb9 (diff) | |
download | online_test-3f037c26bc5c09ddfbd24930148233535770b38b.tar.gz online_test-3f037c26bc5c09ddfbd24930148233535770b38b.tar.bz2 online_test-3f037c26bc5c09ddfbd24930148233535770b38b.zip |
Merge pull request #68 from ankitjavalkar/dockersupport
Add Dockerfile, modify docs and code_server
Diffstat (limited to 'yaksh')
-rwxr-xr-x | yaksh/code_server.py | 4 |
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() |