Launch browser with IPv6 http_host

This commit is contained in:
JonnyWong16 2022-09-18 15:30:53 -07:00
parent c53566225c
commit ed53d66aa7
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -429,7 +429,7 @@ def daemonize():
def launch_browser(host, port, root): def launch_browser(host, port, root):
if not no_browser: if not no_browser:
if host == '0.0.0.0': if host in ('0.0.0.0', '::'):
host = 'localhost' host = 'localhost'
if CONFIG.ENABLE_HTTPS: if CONFIG.ENABLE_HTTPS: