Add a new "firefox" plugin to work around Firefox evil plan

This commit is contained in:
Frank Denis 2019-09-07 11:00:18 +02:00
parent 77f2eef886
commit 207d3172a7
2 changed files with 59 additions and 0 deletions

View file

@ -86,6 +86,9 @@ func InitPluginsGlobals(pluginsGlobals *PluginsGlobals, proxy *Proxy) error {
if len(proxy.whitelistNameFile) != 0 {
*queryPlugins = append(*queryPlugins, Plugin(new(PluginWhitelistName)))
}
*queryPlugins = append(*queryPlugins, Plugin(new(PluginFirefox)))
if len(proxy.blockNameFile) != 0 {
*queryPlugins = append(*queryPlugins, Plugin(new(PluginBlockName)))
}