Remove TLS debugging code on main

This commit is contained in:
WeebDataHoarder
2025-04-13 11:16:13 +02:00
parent cc89b8657f
commit f2389650eb

View File

@@ -262,16 +262,6 @@ func main() {
"directory", *acmeAutocert,
)
tlsConfig = acmeManager.TLSConfig()
} else {
cert, err := tls.LoadX509KeyPair("localhost.crt", "localhost.key")
if err != nil {
log.Fatal(fmt.Errorf("failed to load certificate: %w", err))
}
tlsConfig = &tls.Config{
GetCertificate: func(info *tls.ClientHelloInfo) (*tls.Certificate, error) {
return &cert, nil
},
}
}
var wg sync.WaitGroup