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

Looking up an IPv6 in an empty trie results in error #2

Open
Huji opened this issue Jul 13, 2019 · 0 comments · May be fixed by #3
Open

Looking up an IPv6 in an empty trie results in error #2

Huji opened this issue Jul 13, 2019 · 0 comments · May be fixed by #3

Comments

@Huji
Copy link

Huji commented Jul 13, 2019

Here is an example:

from cidr_trie import PatriciaTrie
trie = PatriciaTrie()
trie.find_all('2A01:5EEE:2222:7F7F:C987:1111:C72D:7FEE')

And the error you get:

ValueError: Cannot store IPv6 prefix in IPv4 trie

I will submit a PR shortly that will fix this.

@Huji Huji linked a pull request Jul 13, 2019 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant