How do I safely get the user's real IP address in Flask (using mod_wsgi)?

前端 未结 2 1791
星月不相逢
星月不相逢 2020-12-08 06:19

I have a flask app setup on mod_wsgi/Apache and need to log the IP Address of the user. request.remote_addr returns \"127.0.0.1\" and this fix attempts to correct that but I

2条回答
提交回复
热议问题