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

Add simulation mode, reading domains from a file #58

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

Conversation

gelim
Copy link

@gelim gelim commented Jan 6, 2021

Yo,

Thanks for this nice tool by the way.
Here I'm adding a "simulate" mode to benchmark a bit the external.yaml policy from a static file (for instance with already identified evil domains).
Was trying to modify as less as possible, hence reusing callback() with a fake message dict stuffed with file domains.
But still odd use of the global pbar that I'm required to mute by default to avoid unnecessary output when for instance launching the script with --help or with --simulate when a progress bar does not make sense.

Cheers,

-- Mathieu

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 this pull request may close these issues.

1 participant