From 2128e787bf16e3dcc096e024f015d685dc68a672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20J=C3=A4ckel?= Date: Thu, 25 Jul 2013 17:03:04 +0200 Subject: [PATCH] Start Browser on custom IP, fixed #827 --- openslides/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/openslides/main.py b/openslides/main.py index 0d609b641..a989b368c 100644 --- a/openslides/main.py +++ b/openslides/main.py @@ -203,11 +203,15 @@ def _main(opts, database_path=None): reload = False if opts.start_browser: + if opts.address: + prefix = opts.address + else: + prefix = 'localhost' if port == 80: suffix = "" else: suffix = ":%d" % port - start_browser("http://localhost%s" % suffix) + start_browser("http://%s%s" % (prefix, suffix)) # Start the server run_tornado(addr, port, reload)