mirror of
https://github.com/fergalmoran/picard.git
synced 2026-01-06 08:34:01 +00:00
PICARD-2642: Open "submit cluster" always on 127.0.0.1
The old implementation would open on 0.0.0.0 if browser_integration_localhost_only was disabled.
This commit is contained in:
@@ -123,8 +123,7 @@ def _open_url_with_token(payload):
|
||||
if isinstance(token, bytes): # For compatibility with PyJWT 1.x
|
||||
token = token.decode()
|
||||
browser_integration = QCoreApplication.instance().browser_integration
|
||||
url = 'http://%s:%s/add?token=%s' % (
|
||||
browser_integration.host_address, browser_integration.port, token)
|
||||
url = f'http://127.0.0.1:{browser_integration.port}/add?token={token}'
|
||||
open(url)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user