From 971444fb4bf2a64d4e97d34db3680a7389a5afec Mon Sep 17 00:00:00 2001 From: Sakimori Date: Fri, 1 Jan 2021 15:28:12 -0500 Subject: [PATCH] another attempt at setting host --- main_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main_controller.py b/main_controller.py index 05de06a..6975daf 100644 --- a/main_controller.py +++ b/main_controller.py @@ -4,14 +4,14 @@ from flask_socketio import SocketIO, emit app = Flask("the-prestige") app.config['SECRET KEY'] = 'dev' -app.config['SERVER_NAME'] = '0.0.0.0:5000' +#app.config['SERVER_NAME'] = '0.0.0.0:5000' socketio = SocketIO(app) @app.route('/') def index(): return render_template("index.html") -thread2 = threading.Thread(target=socketio.run,args=(app,)) +thread2 = threading.Thread(target=socketio.run,args=(app,'0.0.0.0')) thread2.start() master_games_dic = {} #key timestamp : (game game, {} state)