Add DNS64 support

This commit is contained in:
s-s 2020-06-08 18:23:03 +02:00 committed by Frank Denis
parent d766dc8bf7
commit f48b13f7b8
5 changed files with 291 additions and 1 deletions

View file

@ -135,6 +135,9 @@ func (proxy *Proxy) InitPluginsGlobals() error {
if len(proxy.blockIPFile) != 0 {
*responsePlugins = append(*responsePlugins, Plugin(new(PluginBlockIP)))
}
if len(proxy.dns64Resolvers) != 0 || len(proxy.dns64Prefixes) != 0 {
*responsePlugins = append(*responsePlugins, Plugin(new(PluginDns64)))
}
if proxy.cache {
*responsePlugins = append(*responsePlugins, Plugin(new(PluginCacheResponse)))
}