home: refactor more
This commit is contained in:
@@ -22,7 +22,6 @@ import (
|
||||
"github.com/AdguardTeam/golibs/stringutil"
|
||||
"github.com/AdguardTeam/golibs/timeutil"
|
||||
"github.com/ameshkov/dnscrypt/v2"
|
||||
"golang.org/x/exp/slices"
|
||||
)
|
||||
|
||||
// BlockingMode is an enum of all allowed blocking modes.
|
||||
@@ -186,11 +185,6 @@ type TLSConfig struct {
|
||||
hasIPAddrs bool
|
||||
}
|
||||
|
||||
// CertDataClone returns a deep copy of certificate data.
|
||||
func (c TLSConfig) CertDataClone() (certData, keyData []byte) {
|
||||
return slices.Clone(c.CertificateChainData), slices.Clone(c.PrivateKeyData)
|
||||
}
|
||||
|
||||
// DNSCryptConfig is the DNSCrypt server configuration struct.
|
||||
type DNSCryptConfig struct {
|
||||
ResolverCert *dnscrypt.Cert
|
||||
|
||||
Reference in New Issue
Block a user