From 1eee40a30e88c070f54d456546b1daeaf7da0479 Mon Sep 17 00:00:00 2001 From: Benjamin Dweck Date: Thu, 22 Oct 2020 19:18:35 +0200 Subject: [PATCH] modified web server to bind to 0.0.0.0 to allow external access --- torchsub/torch_sub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchsub/torch_sub.py b/torchsub/torch_sub.py index 48637e1..072fe7b 100644 --- a/torchsub/torch_sub.py +++ b/torchsub/torch_sub.py @@ -115,7 +115,7 @@ def main(): json.dump({}, database_blank) threading.Thread(target=torch_sub_webserver.app.run, - args=("localhost", config.web_port), + args=("0.0.0.0", config.web_port), daemon=True).start() subscribe(config.broker_hostname,