mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 00:06:07 -07:00
Simpler http root check when starting webserver
This commit is contained in:
parent
92a3589588
commit
76e9e24c41
1 changed files with 3 additions and 3 deletions
|
@ -78,10 +78,10 @@ def initialize(options):
|
||||||
else:
|
else:
|
||||||
auth_enabled = session_enabled = basic_auth_enabled = False
|
auth_enabled = session_enabled = basic_auth_enabled = False
|
||||||
|
|
||||||
if not options['http_root'] or options['http_root'] == '/':
|
if options['http_root'].strip('/'):
|
||||||
plexpy.HTTP_ROOT = options['http_root'] = '/'
|
|
||||||
else:
|
|
||||||
plexpy.HTTP_ROOT = options['http_root'] = '/' + options['http_root'].strip('/') + '/'
|
plexpy.HTTP_ROOT = options['http_root'] = '/' + options['http_root'].strip('/') + '/'
|
||||||
|
else:
|
||||||
|
plexpy.HTTP_ROOT = options['http_root'] = '/'
|
||||||
|
|
||||||
cherrypy.config.update(options_dict)
|
cherrypy.config.update(options_dict)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue