Commit 9a1d1ea2 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Connect to 127.0.0.1

parent dec79570
......@@ -75,16 +75,17 @@ class SessionHelper(object):
"""Create session credentials"""
ui_id = sha1(os.urandom(128)).hexdigest()
LOCAL_ADDR = '127.0.0.1'
WebSocketProtocol.ui_id = ui_id
WebSocketProtocol.session_db = self.session_db
WebSocketProtocol.session_relation = self.session_relation
server = make_server(
'', 0,
LOCAL_ADDR, 0,
server_class=WSGIServer,
handler_class=WebSocketWSGIRequestHandler,
app=WebSocketWSGIApplication(handler_cls=WebSocketProtocol))
server.initialize_websockets_manager()
address = 'ws://%s:%s' % (server.server_name, server.server_port)
address = 'ws://%s:%s' % (LOCAL_ADDR, server.server_port)
self.server = server
self.db.execute('BEGIN')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment