Skip to content

无法处理IPv4-mapped IPv6 addresses #4

Description

@w0mTea

以::FFFF:192.168.0.1为例,db.findInfo会抛出异常net.ipip.ipdb.IPFormatException: ipv4 format error

进一步检查会发现所有::开头的IPv6地址都无法被正确解析

应该是因为Read.java,find方法,90行这个判断条件的问题:
if (addr.indexOf(":") > 0)

所有::开头的IPv6地址都会错过这个分支进入IPv4解析的分支里。。。

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