摘要: 对于有nginx反向代理的请求,需要在nginx配置中添加如下内容: proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 然后在项目代码中获取ip from flask import request ip = request.ac 阅读全文
posted @ 2022-12-07 10:52 一枚码农 阅读(82) 评论(0) 推荐(0) 编辑