Add a new plugin to block unqualified host names

This commit is contained in:
Frank Denis 2019-12-09 20:25:38 +01:00
parent 56d02597a6
commit a635e92606
5 changed files with 64 additions and 0 deletions

View file

@ -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 {