mirror of https://gitlab.com/bashrc2/epicyon
X-Forward
parent
1929f97bf4
commit
bb3847481f
|
@ -1439,8 +1439,8 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
return
|
||||
authHeader = \
|
||||
createBasicAuthHeader(loginNickname, loginPassword)
|
||||
if self.headers.get('X-Forwarded-For'):
|
||||
ipAddress = self.headers['X-Forwarded-For']
|
||||
if self.headers.get('X-Forward-For'):
|
||||
ipAddress = self.headers['X-Forward-For']
|
||||
else:
|
||||
ipAddress = self.client_address[0]
|
||||
if not domain.endswith('.onion'):
|
||||
|
|
Loading…
Reference in New Issue