trust_x_forwarded_for无效问题
在利用cloudflare前置时,对cs配置set trust_x_forwarded_for "true";无效主要原因是,cloudflare发送的头是小写,cs里面取的是标准写法,因此需要反编译修改在编译回来

即可获取到真实ip
trust_x_forwarded_for无效问题在利用cloudflare前置时,对cs配置set trust_x_forwarded_for "true";无效主要原因是,cloudflare发送的头是小写,cs里面取的是标准写法,因此需要反编译修改在编译回来
即可获取到真实ip
|