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

Add IPv6 support #60

Closed
daviddias opened this issue Nov 12, 2017 · 3 comments
Closed

Add IPv6 support #60

daviddias opened this issue Nov 12, 2017 · 3 comments
Labels
effort/days Estimated to take multiple days, but less than a week exp/intermediate Prior experience is likely helpful help wanted Seeking public contribution on this issue kind/enhancement A net-new feature or improvement to an existing feature P2 Medium: Good to have, but can wait until someone steps up

Comments

@daviddias
Copy link
Member

https://github.com/ipfs/ipfs-geoip/blob/master/src/pretty.js#L26-L29

@daviddias daviddias added exp/expert Having worked on the specific codebase is important help wanted Seeking public contribution on this issue P2 Medium: Good to have, but can wait until someone steps up labels Nov 12, 2017
@aalavandhan
Copy link

Hi,

I would like to help out with this.
I see that for IPv4 addresses you lookup locations from here.
Any idea where I can lookup IPv6 address locations?

@lidel
Copy link
Member

lidel commented Jan 18, 2018

@nithinkrishna try GeoLite2 data set (licensed under CC-BY-SA): https://dev.maxmind.com/geoip/geoip2/geolite2/

You are probably interested in CSV format. Each ZIP includes *IPv6.csv

@lidel
Copy link
Member

lidel commented Oct 19, 2022

FWIW fwiw source CSV identified by DATA_HASH in src/generate/index.js includes IPV6 info in GeoLite2-City-Blocks-IPv6.csv:

$ ipfs ls bafybeicfcxk4bx3nwmg3hwjmlc6n2qzn73mfm5itfpadwh5w7bux2chgz4
bafkreihes7r7nzovjeihybcvm7r4wofc4raq4auw56ufn2dnte4tioso2e 55        COPYRIGHT.txt
bafybeihdsvtywrrbmoqisqrltapw2zbgbu5tl6x5ijjmrauo6boeqo3vay 218942111 GeoLite2-City-Blocks-IPv4.csv
bafybeibvkpyxiad2at2ld4hgjat2boqkpolg3niqekp67fugrnp4pbvihi 80894247  GeoLite2-City-Blocks-IPv6.csv
bafybeicrybijxosuh4l4mrtfc6hi4ey6rvv5pluqhnqzdozqkk34svp4yy 8730908   GeoLite2-City-Locations-de.csv
bafybeiatzmaijbha4n6fmfqiy3vm4k62k5jbeu27rtkdcdjhgslcadxqqa 10432599  GeoLite2-City-Locations-en.csv
bafybeifqloagg3fjnyt5loeac4j2xl6nuav4mgywkk5x7tqe6exxirv2wy 8663321   GeoLite2-City-Locations-es.csv
bafybeiaqi4ayqxex2y4szinily32bah2vahhbkxb6j2xiamtpf7am56kte 9258315   GeoLite2-City-Locations-fr.csv
bafybeiguklag6kpmr3nvtrqrthj7m4lhi5dst4ems25h2mdswkgzultnxa 11645375  GeoLite2-City-Locations-ja.csv
bafybeie2hoxesntzwzwrpzeaxrb3wiudgoy2j3a2umnb5jyqom7s6zkyiu 8668327   GeoLite2-City-Locations-pt-BR.csv
bafybeic5yeidvb7dsreanhhlxllm7wacnkbwwrczcjk5o3hzayl3lznuva 11729812  GeoLite2-City-Locations-ru.csv
bafybeicvkmkdettefag6ai6v6uwf5hp6f2knjlvwpqsrdpgbk6ieuruca4 9019475   GeoLite2-City-Locations-zh-CN.csv
bafkreic7pswr7zmeynivapbgoi44p5fauyhofvfhhidefqhxziixfuqvom 398       LICENSE.txt

We are not using them during b-tree generation – it is IPv4 only atm, but we could – PR welcome!

@lidel lidel added exp/intermediate Prior experience is likely helpful effort/days Estimated to take multiple days, but less than a week kind/enhancement A net-new feature or improvement to an existing feature and removed exp/expert Having worked on the specific codebase is important labels Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort/days Estimated to take multiple days, but less than a week exp/intermediate Prior experience is likely helpful help wanted Seeking public contribution on this issue kind/enhancement A net-new feature or improvement to an existing feature P2 Medium: Good to have, but can wait until someone steps up
Projects
None yet
Development

No branches or pull requests

3 participants