Make sure proxy handler priority is before auth handler (Fixes Tautulli/Tautulli-Issues#123)
This commit is contained in:
@@ -69,7 +69,7 @@ def initialize(options):
|
|||||||
|
|
||||||
if options['http_proxy']:
|
if options['http_proxy']:
|
||||||
# Overwrite cherrypy.tools.proxy with our own proxy handler
|
# Overwrite cherrypy.tools.proxy with our own proxy handler
|
||||||
cherrypy.tools.proxy = cherrypy.Tool('before_handler', proxy)
|
cherrypy.tools.proxy = cherrypy.Tool('before_handler', proxy, priority=1)
|
||||||
|
|
||||||
if options['http_password']:
|
if options['http_password']:
|
||||||
login_allowed = ["Tautulli admin (username is '%s')" % options['http_username']]
|
login_allowed = ["Tautulli admin (username is '%s')" % options['http_username']]
|
||||||
@@ -84,7 +84,7 @@ def initialize(options):
|
|||||||
else:
|
else:
|
||||||
auth_enabled = True
|
auth_enabled = True
|
||||||
basic_auth_enabled = False
|
basic_auth_enabled = False
|
||||||
cherrypy.tools.auth = cherrypy.Tool('before_handler', webauth.check_auth)
|
cherrypy.tools.auth = cherrypy.Tool('before_handler', webauth.check_auth, priority=2)
|
||||||
else:
|
else:
|
||||||
auth_enabled = basic_auth_enabled = False
|
auth_enabled = basic_auth_enabled = False
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user