mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-16 08:35:32 +01:00
fixed issue with browser not finding 0.0.0.0 on Windows. Now redirects to localhost
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user