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

If a trie is empty, find_all should return [] #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jul 31, 2019

  1. If a trie is empty, find_all should return []

    If a trie is empty, there is no point in validating its IP type or running any of the rest of the logic. Indeed, if you validate an IP v6 against an empty trie, you will get an error (because self.v6 always defaults to false, and will not be changed until at least one IP v6 item is added to the trie).
    Huji committed Jul 31, 2019
    Configuration menu
    Copy the full SHA
    6fc8fc1 View commit details
    Browse the repository at this point in the history