TechnikEmpire / DistillNET

DistillNET is a library for matching and filtering HTTP requests and HTML response content using the Adblock Plus Filter format.
Mozilla Public License 2.0
16 stars 4 forks source link

When recalling rules, need to extract subdomains #3

Closed TechnikEmpire closed 7 years ago

TechnikEmpire commented 7 years ago

After fixing #2 , it's clear that in order to accurately match things, the filter db collection's method to fetch all rules for a specific domain must decompose that input domain into all possible subdomains, and include those results as potentially matching filters as well.

Since we'll be for-looping these lookups now, a transaction should be created to wrap the command creation.