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

Support A1, A2 special countries #13

Open
urusha opened this issue May 22, 2019 · 0 comments
Open

Support A1, A2 special countries #13

urusha opened this issue May 22, 2019 · 0 comments

Comments

@urusha
Copy link

urusha commented May 22, 2019

It would be nice if we could build database with A1 (Anonymous Proxy), A2 (Satellite Provider) special countries support.
Currently, this hack of editing csv inside zip could be used (country example):

echo '12000001,en,--,"",A1,"Anonymous Proxy",0
12000002,en,--,"",A2,"Satellite Provider",0' >> GeoIP2-Country-Locations-en.csv

sed -i 's/^\(.*\),,\([0-9]*,[0-9]*,1,0\)$/\1,12000001,\2/; s/^\(.*\),,\([0-9]*,[0-9]*,0,1\)$/\1,12000002,\2/;' GeoIP2-Country-Blocks-IPv4.csv GeoIP2-Country-Blocks-IPv6.csv
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