Feat/implement-refresh-tokens (#9233)

This commit is contained in:
-LAN- 2024-10-12 23:46:30 +08:00 • committed by GitHub
commit f73751843f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 123 additions and 38 deletions

View file

@ -162,7 +162,7 @@ def generate_string(n):
return result
def get_remote_ip(request) -> str:
def extract_remote_ip(request) -> str:
if request.headers.get("CF-Connecting-IP"):
return request.headers.get("Cf-Connecting-Ip")
elif request.headers.getlist("X-Forwarded-For"):