This commit is contained in:
2026-05-16 00:18:06 -03:00
commit 92941e68a2
66 changed files with 10352 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
package dnsttclient
import (
"crypto/tls"
"crypto/x509"
)
func loadTLSConfig() (*tls.Config, error) {
pool, err := x509.SystemCertPool()
if err != nil {
pool = nil
}
config := &tls.Config{
MinVersion: tls.VersionTLS12,
}
if pool != nil {
config.RootCAs = pool
}
return config, nil
}