-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Make private ip the same as geoip:private #1061
base: Alpha
Are you sure you want to change the base?
Conversation
Currently ip.IsPrivate and netip.Addr.IsPrivate only matches a part of private IPs.
https://datatracker.ietf.org/doc/html/rfc1918#section-3 These IPs are not clearly defined |
These are private IPs in https://github.com/MetaCubeX/meta-rules-dat/blob/meta/geo/geoip/private.list |
6321cfb
to
092e535
Compare
其实geoip:private里面的地址不应该叫做Private IP Addresses,而应该是Reserved IP addresses。 |
确实在理 |
这看上去更应该修改geoip-code让它支持多个code,或者增加单独的filter以接受指定IP段的结果 |
99b6ffa
to
44d8a14
Compare
af42ed0
to
3b472f7
Compare
c3fdcff
to
ae45564
Compare
760da02
to
0e22876
Compare
c5a4a91
to
c830b8a
Compare
7b03fdc
to
7fd0467
Compare
c6cff7f
to
9cf3eb3
Compare
15365f5
to
6306c6b
Compare
65fea35
to
ecbbf9d
Compare
22addc6
to
5772507
Compare
Currently ip.IsPrivate and netip.Addr.IsPrivate only matches a part of private IPs. This pr uses the CIDR list from geoip:private to fix it.