1
insoxin 2017-08-13 14:28:02 +08:00 via iPhone
[ASP]
Request.ServerVariables(HTTP_X_FORWARDED_FOR) [PHP] $_SERVER[HTTP_X_FORWARDED_FOR] [JSP] request.getHeader(HTTP_X_FORWARDED_FOR) [tomcat] 1.在反向代理请求中有 X-Forwarded-For 的前提下,tomcat 的配置文件 server.xml 中 org.apache.catalina.valves.AccessLogValve 的 pattern 中包含%{X-Forwarded-For}i 即可在 access log 看到客户端的真实 ip; 2.pattern="%{X_Forwarded_For}i|%t|%s|%S|%b|%D|%q|%T|%{Referer}i|%{User-Agent}i"/> |
2
AlexZou 2017-08-14 09:13:44 +08:00
如果是分别获取 token 的话就会存在问题。只有最新获取的 token 才是有效的 https://github.com/doraemonext/wechat-python-sdk/issues/70
|