/tls/configure and /tls/status -- now there's an explicit 'enabled' bool.
This commit is contained in:
committed by
Eugene Bujak
parent
8da90a7f4a
commit
81bb4aea78
8
dns.go
8
dns.go
@@ -51,9 +51,11 @@ func generateServerConfig() dnsforward.ServerConfig {
|
||||
Filters: filters,
|
||||
}
|
||||
|
||||
newconfig.TLSConfig = config.TLS.TLSConfig
|
||||
if config.TLS.PortDNSOverTLS != 0 {
|
||||
newconfig.TLSListenAddr = &net.TCPAddr{IP: net.ParseIP(config.DNS.BindHost), Port: config.TLS.PortDNSOverTLS}
|
||||
if config.TLS.Enabled {
|
||||
newconfig.TLSConfig = config.TLS.TLSConfig
|
||||
if config.TLS.PortDNSOverTLS != 0 {
|
||||
newconfig.TLSListenAddr = &net.TCPAddr{IP: net.ParseIP(config.DNS.BindHost), Port: config.TLS.PortDNSOverTLS}
|
||||
}
|
||||
}
|
||||
|
||||
for _, u := range config.DNS.UpstreamDNS {
|
||||
|
||||
Reference in New Issue
Block a user