Added DNS-over-TLS unit-test and a test looking for race-conditions

This commit is contained in:
Andrey Meshkov
2019-02-22 15:23:39 +03:00
parent 158f2f6100
commit 71df659dc9
2 changed files with 197 additions and 13 deletions

View File

@@ -70,6 +70,7 @@ type FilteringConfig struct {
dnsfilter.Config `yaml:",inline"`
}
// TLSConfig is the TLS configuration for HTTPS, DNS-over-HTTPS, and DNS-over-TLS
type TLSConfig struct {
TLSListenAddr *net.TCPAddr `yaml:"-" json:"-"`
CertificateChain string `yaml:"certificate_chain" json:"certificate_chain"` // PEM-encoded certificates chain