fixed issue with browser not finding 0.0.0.0 on Windows. Now redirects to localhost

This commit is contained in:
Remy
2011-05-27 14:29:33 -07:00
parent 18601a79f7
commit 64322eabd1

View File

@@ -81,7 +81,11 @@ def serverstart():
def browser():
webbrowser.open('http://' + settings['http_host'] + ':' + settings['http_port'])
if settings['http_host'] == '0.0.0.0':
host = 'localhost'
else:
host = settings['http_host']
webbrowser.open('http://' + host + ':' + settings['http_port'])
if settings['launch_browser'] == '1':