Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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).
- Loading branch information