From 26328f5c09af9076ade44388f620deb6b22e0eab Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 4 Jun 2015 20:15:19 +0100 Subject: listen to the world instead of localhost it is dangerous, but that's what is interesting ! Signed-off-by: Olivier Gayot --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server.py') 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) -- cgit v1.2.3