mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 16:22:57 -07:00
Fix verifying PMS with unpublished hostnames (Fixes Tautulli/Tautulli-Issues#190)
This commit is contained in:
parent
a83108282a
commit
7b16af0585
1 changed files with 2 additions and 2 deletions
|
@ -3659,10 +3659,10 @@ class WebInterface(object):
|
|||
identifier = server['clientIdentifier']
|
||||
break
|
||||
|
||||
# Fallback to checking /identity endpoint is server is unpublished
|
||||
# Fallback to checking /identity endpoint if the server is unpublished
|
||||
# Cannot set SSL settings on the PMS if unpublished so 'http' is okay
|
||||
if not identifier:
|
||||
scheme = 'https' if ssl else 'http'
|
||||
scheme = 'https' if helpers.cast_to_int(ssl) else 'http'
|
||||
url = '{scheme}://{hostname}:{port}'.format(scheme=scheme, hostname=hostname, port=port)
|
||||
uri = '/identity'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue