Skip to content
Snippets Groups Projects
Commit de7e28fa authored by Nils G.'s avatar Nils G.
Browse files

Use real host in websocket send in case we rely on ssl certificates

parent bb2045b7
No related branches found
No related tags found
No related merge requests found
......@@ -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(current.request.env.wsgi_url_scheme + '://127.0.0.1:8888', _data, '67c371fd204fbcbf9742310d1a9d951bcca1aa86', _room.code)
websocket_send(current.request.env.wsgi_url_scheme + '://' + GET_HOST() + ':8888', _data, '67c371fd204fbcbf9742310d1a9d951bcca1aa86', _room.code)
def GET_URL(_room):
if current.request.env.wsgi_url_scheme == "https":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment