summaryrefslogtreecommitdiff
path: root/server.py
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-06-04 20:15:19 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-06-04 20:15:19 +0100
commit26328f5c09af9076ade44388f620deb6b22e0eab (patch)
tree35854cb144db77db8f6e89a337247e461c854f0c /server.py
parent2d93787b926cbfe1e9b33e66e1900613d320b090 (diff)
listen to the world instead of localhost
it is dangerous, but that's what is interesting ! Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'server.py')
-rwxr-xr-xserver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.py b/server.py
index 9a9e75a..80cc153 100755
--- a/server.py
+++ b/server.py
@@ -59,7 +59,7 @@ def message_received_handler(client, server, message):
server.send_message(client, res)
def main():
- server = WebsocketServer(1236)
+ server = WebsocketServer(1236, '0.0.0.0')
server.set_fn_new_client(new_client_handler)
server.set_fn_client_left(client_left_handler)
server.set_fn_message_received(message_received_handler)