New feature: query_meta

This commit is contained in:
Frank Denis 2019-09-07 16:19:47 +02:00
parent 6b1966b38f
commit 776e0d7ccc
6 changed files with 61 additions and 0 deletions

View file

@ -83,6 +83,10 @@ type PluginsState struct {
func InitPluginsGlobals(pluginsGlobals *PluginsGlobals, proxy *Proxy) error {
queryPlugins := &[]Plugin{}
if len(proxy.queryMeta) != 0 {
*queryPlugins = append(*queryPlugins, Plugin(new(PluginQueryMeta)))
}
if len(proxy.whitelistNameFile) != 0 {
*queryPlugins = append(*queryPlugins, Plugin(new(PluginWhitelistName)))
}