mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-06 17:36:50 +08:00
Feat/implement-refresh-tokens (#9233)
This commit is contained in:
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user