Correct script environment if http host changed

This commit is contained in:
JonnyWong16 2018-06-27 14:04:28 -07:00
parent 5fc182dcc2
commit b248dbacf2

View file

@ -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