mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 07:22:37 -07:00
Correct script environment if http host changed
This commit is contained in:
parent
5fc182dcc2
commit
b248dbacf2
1 changed files with 2 additions and 0 deletions
|
@ -1083,6 +1083,8 @@ def get_plexpy_url(hostname=None):
|
|||
|
||||
if not hostname:
|
||||
hostname = 'localhost'
|
||||
elif hostname == 'localhost' and plexpy.CONFIG.HTTP_HOST != '0.0.0.0':
|
||||
hostname = plexpy.CONFIG.HTTP_HOST
|
||||
else:
|
||||
hostname = hostname or plexpy.CONFIG.HTTP_HOST
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue