From 22b5b14e3699c34f8d215d3c0dd39a5306572868 Mon Sep 17 00:00:00 2001 From: Nils G <nils.gondermann@ruhr-uni-bochum.de> Date: Fri, 17 Apr 2020 13:10:11 +0200 Subject: [PATCH] Always send websocket messages to localhost server-side --- modules/websocket_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/websocket_util.py b/modules/websocket_util.py index 84db71d..187a348 100644 --- a/modules/websocket_util.py +++ b/modules/websocket_util.py @@ -4,7 +4,7 @@ from gluon.contrib.websocket_messaging import websocket_send from http_util import GET_HOST def WEBSOCKET_SEND(_room, _type, _data): - websocket_send('http://' + GET_HOST() + ':8888', _data, '67c371fd204fbcbf9742310d1a9d951bcca1aa86', _room.code) + websocket_send('http://127.0.0.1:8888', _data, '67c371fd204fbcbf9742310d1a9d951bcca1aa86', _room.code) def GET_URL(_room): return("ws://"+GET_HOST()+":8888/realtime/"+_room.code) -- GitLab