Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

127.0.0.1 FRP访问网站会造成位置显示报错 #820

Closed
SonHakuu opened this issue Nov 17, 2023 · 2 comments
Closed

127.0.0.1 FRP访问网站会造成位置显示报错 #820

SonHakuu opened this issue Nov 17, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@SonHakuu
Copy link

本人环境:
PHP-8.1
Nginx-1.22.1
未修改过网站的源代码

在测试网站评论功能能时发现评论出现Warning,如下:
TH}T$V6NJ@PDM(QC 4ORR{S
经过检查报错所指的文件functions.php的报错代码所在区域,发现该区域所实现的是IP地址判断用户位置的功能,怀疑是用户位置显示造成的报错。
解决:关闭了显示用户所在位置,报错消失。

由于我没有公网ip,使用了FRP穿透到公网,服务器端看到访问请求来源都是127.0.0.1。

@SonHakuu SonHakuu added the bug Something isn't working label Nov 17, 2023
Copy link

@Sun-xiaoqiu,感谢你给 sakurairo 提出了 issue。ヾ(≧▽≦*)o
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@KotoriK
Copy link
Collaborator

KotoriK commented Nov 21, 2023

IP地址需要代理服务器使用一些约定传到WordPress服务器上,例如采用X-Forward-IP头。
但这些功能应该不属于也不该属于这个主题的功能范围。

@KotoriK KotoriK closed this as not planned Won't fix, can't repro, duplicate, stale Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants