本帖最后由 奧巴马 于 2022-5-3 22:26 编辑
引用: sai 发表于 2022-5-3 21:54
ip138显示的是本地ip,https://www.whatismyip.com/ 依然502,https://www.whatismyip.com.tw/ 依然双ip ...
https://www.whatismyip.com/ 这个502是因为套了CF
p138显示的是本地ip 修改
sub_filter "\"//" '"$current$host/https://';
sub_filter '"/' '"$current$host/$custom_host/';
https://www.whatismyip.com.tw/ 依然双ip
注释
# proxy_set_header x-forwarded-for $remote_addr;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;