Skip to content

无法处理IPv4-mapped IPv6 addresses #4

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

Open
w0mTea opened this issue Jan 24, 2019 · 1 comment
Open

无法处理IPv4-mapped IPv6 addresses #4

w0mTea opened this issue Jan 24, 2019 · 1 comment

Comments

@w0mTea
Copy link

w0mTea commented Jan 24, 2019

以::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解析的分支里。。。

@17mon
Copy link

17mon commented Jan 29, 2019

@w0mTea IPv4-mapped IPv6 addresses目前不支持呢

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

2 participants