forked from shaba/openuds
Allow UDS behind a proxy
This commit is contained in:
parent
6b5f9d266d
commit
09f329db62
@ -110,10 +110,6 @@ class GlobalRequestMiddleware(object):
|
|||||||
request.ip_proxy = request.ip
|
request.ip_proxy = request.ip
|
||||||
request.is_proxy = False
|
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
|
@staticmethod
|
||||||
def getUser(request):
|
def getUser(request):
|
||||||
'''
|
'''
|
||||||
|
Loading…
Reference in New Issue
Block a user