mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-06 14:47:35 +03:00
Add a new plugin to block unqualified host names
This commit is contained in:
parent
56d02597a6
commit
a635e92606
5 changed files with 64 additions and 0 deletions
|
@ -115,6 +115,9 @@ func (proxy *Proxy) InitPluginsGlobals() error {
|
|||
if len(proxy.forwardFile) != 0 {
|
||||
*queryPlugins = append(*queryPlugins, Plugin(new(PluginForward)))
|
||||
}
|
||||
if proxy.pluginBlockUnqualified {
|
||||
*queryPlugins = append(*queryPlugins, Plugin(new(PluginBlockUnqualified)))
|
||||
}
|
||||
|
||||
responsePlugins := &[]Plugin{}
|
||||
if len(proxy.nxLogFile) != 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue