Skip to content

Internal Blocklist #28

@LizIzhikevich

Description

@LizIzhikevich

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions