修改你的 frpc.ini 文件
在需要获取真实IP的https隧道后加上proxy_protocol_version = v2
,如图
![](http://ruiyu.site/usr/uploads/2022/11/1667636488-image.png)
修改NGINX配置文件
在https后加上 proxy_protocol
之后在root后加上
real_ip_header proxy_protocol;
real_ip_recursive on;
set_real_ip_from 127.0.0.1;
![](http://ruiyu.site/usr/uploads/2022/11/1667636459-image.png)
最后重启nginx即可获取真实IP地址
在需要获取真实IP的https隧道后加上proxy_protocol_version = v2
,如图
在https后加上 proxy_protocol
之后在root后加上
real_ip_header proxy_protocol;
real_ip_recursive on;
set_real_ip_from 127.0.0.1;
最后重启nginx即可获取真实IP地址
评论 (0)