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

Internal Blocklist #28

Open
LizIzhikevich opened this issue Jan 27, 2025 · 0 comments
Open

Internal Blocklist #28

LizIzhikevich opened this issue Jan 27, 2025 · 0 comments

Comments

@LizIzhikevich
Copy link
Collaborator

Implemented block list using the github.com/porfirion/trie library

Added command line option -blockedList where blockedIPs is a path to a list of IP addresses delimited by newlines ‘\n’

Builds the trie when constructing main routine in init_params

Checks each packet for destination address and if the address/prefix is in the blocked trie

Optimized the trie to not include subaddresses if prefix is already in the trie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant