Handle captive portal names after coldstart

This commit is contained in:
Frank Denis 2021-01-01 21:39:17 +01:00
parent c308727d15
commit f245189f02
4 changed files with 125 additions and 43 deletions

View file

@ -93,6 +93,9 @@ type PluginsState struct {
func (proxy *Proxy) InitPluginsGlobals() error {
queryPlugins := &[]Plugin{}
if proxy.captivePortalMap != nil {
*queryPlugins = append(*queryPlugins, Plugin(new(PluginCaptivePortal)))
}
if len(proxy.queryMeta) != 0 {
*queryPlugins = append(*queryPlugins, Plugin(new(PluginQueryMeta)))
}