X-Forward

main
Bob Mottram 2021-06-09 17:34:21 +01:00
parent 1929f97bf4
commit bb3847481f
1 changed files with 2 additions and 2 deletions

View File

@ -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'):