mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 21:21:15 -07:00
Make sure cherrypy doesn't add the local port twice with http_proxy enabled
This commit is contained in:
parent
a3f0a78df0
commit
f4c9dc8a5f
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ def proxy(base=None, local='X-Forwarded-Host', remote='X-Forwarded-For',
|
||||||
if not base:
|
if not base:
|
||||||
base = request.headers.get('Host', '127.0.0.1')
|
base = request.headers.get('Host', '127.0.0.1')
|
||||||
port = request.local.port
|
port = request.local.port
|
||||||
if port != 80:
|
if port != 80 and not base.endswith(':%s' % port):
|
||||||
base += ':%s' % port
|
base += ':%s' % port
|
||||||
|
|
||||||
if base.find("://") == -1:
|
if base.find("://") == -1:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue