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

Changed $domains_being_blocked to point to gravity.list, instead of a… #12

Closed
wants to merge 5 commits into from
Closed

Conversation

PromoFaux
Copy link
Member

Divide gravity.list count by 2, as each domain has both IPv4 and IPv6.
divide count from gravity.list by two, as each domain has both IPv4 and IPv6
@PromoFaux
Copy link
Member Author

Tested the latter 2 commits locally and it works. Takes into account issue #8

Makes sense to run on gravity.list as the white and blacklisted domains are not added/removed until this point.

Also fixes #11

@AzureMarker
Copy link
Contributor

Does this take into account whether or not the user is using ipv6? If they aren't, it will show them as blocking half as many as they actually are.

@PromoFaux
Copy link
Member Author

Very good point. No, it was just a simple line change... perhaps pihole.2.eventHorizon.txt is the best place to be.. one moment please

@PromoFaux
Copy link
Member Author

You know what, scratch this. I think it's probably better to put the count in a seperate file that is worked out after the gravity.list is generated, so that we can take into account white and blacklisted domains.

Ignore everything!

also gives an opportunity for the leftover files to be cleared down once gravity.sh has run.

@PromoFaux PromoFaux closed this Jan 18, 2016
@PromoFaux PromoFaux reopened this Jan 18, 2016
@PromoFaux
Copy link
Member Author

This will work as a stopgap until I or someone else codes what I wrote in the above comment!

@PromoFaux
Copy link
Member Author

no longer needed

@PromoFaux PromoFaux closed this Jan 18, 2016
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.

None yet

2 participants