Skip to content

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

Description

@LTGVE

在服务器中使用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
已确定服务器网络无问题

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions