1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-22 13:34:04 +03:00

Allow UDS behind a proxy

This commit is contained in:
Adolfo Gómez García 2016-04-22 15:03:06 +02:00
parent 6b5f9d266d
commit 09f329db62

View File

@ -110,10 +110,6 @@ class GlobalRequestMiddleware(object):
request.ip_proxy = request.ip
request.is_proxy = False
# Always honor proxy if we are behind a proxy
if GlobalConfig.BEHIND_PROXY.getBool(False) is True:
request.ip = request.ip_proxy
@staticmethod
def getUser(request):
'''