X-Forward

This commit is contained in:
bashrc committed 2021-06-09 17:34:21 +01:00
1 parent 1929f97bf4
commit bb3847481f
1 file changed
+2 -2
+2 -2
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'):