Skip to content

Commit

Permalink
Hotfix: localhost instead of 127.0.0.1 when brownser start.
Browse files Browse the repository at this point in the history
  • Loading branch information
makseq committed Mar 11, 2020
1 parent e8a5d05 commit 11ad8ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion label_studio/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ def main():
# On `start` command, launch browser if --no-browser is not specified and start label studio server
if input_args.command == 'start':
if not input_args.no_browser:
browser_url = 'http://127.0.0.1:' + str(input_args.port) + '/welcome'
browser_url = label_studio.utils.functions.HOSTNAME + '/welcome'
threading.Timer(2.5, lambda: webbrowser.open(browser_url)).start()
print('Start browser at URL: ' + browser_url)

Expand Down

0 comments on commit 11ad8ef

Please sign in to comment.