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

当玩家使用IPv6登录时查询有问题 #1

Open
LTGVE opened this issue May 18, 2024 · 0 comments
Open

当玩家使用IPv6登录时查询有问题 #1

LTGVE opened this issue May 18, 2024 · 0 comments

Comments

@LTGVE
Copy link

LTGVE commented May 18, 2024

在服务器中使用IPv6登录和使用指令可以获取IP但无法获取地理位置
而我发现在你的
String apiUrl = "https://www.ip.cn/api/index?ip=" + ip + "&type=1";
中发现这个链接把我的ipv6返回为内网IP,而我的IPv6为公网IP
以下为在url api访问的结果:
image
以下为其他网址返回的IP:
image
访问主机的IP:
image
这是在游戏中的截图:
image
以上是在控制台输出的截图:
image

希望得到解决
注:
服务器版本为1.20.1
服务端为paper
已确定服务器网络无问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant