Error out if the dns64 plugin is enabled without listening sockets
This commit is contained in:
parent
c74b993cbb
commit
b02649f774
|
@ -585,6 +585,9 @@ func ConfigLoad(proxy *Proxy, flags *ConfigFlags) error {
|
||||||
|
|
||||||
proxy.serversBlockingFragments = config.BrokenImplementations.FragmentsBlocked
|
proxy.serversBlockingFragments = config.BrokenImplementations.FragmentsBlocked
|
||||||
|
|
||||||
|
if (len(config.DNS64.Prefixes) != 0 || len(config.DNS64.Resolvers) != 0) && len(config.ListenAddresses) == 0 {
|
||||||
|
dlog.Fatal("`listenAddresses` cannot be empty in order to use DNS64 translation")
|
||||||
|
}
|
||||||
proxy.dns64Prefixes = config.DNS64.Prefixes
|
proxy.dns64Prefixes = config.DNS64.Prefixes
|
||||||
proxy.dns64Resolvers = config.DNS64.Resolvers
|
proxy.dns64Resolvers = config.DNS64.Resolvers
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue