Merge pull request #832 from normanjaeckel/Fix_Start_Option

Start Browser on custom IP, fixed #827
This commit is contained in:
Oskar Hahn 2013-07-25 14:01:13 -07:00
commit 6005934e3b

View File

@ -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)