Remove TLS debugging code on main
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user