mirror of
https://github.com/umputun/reproxy.git
synced 2025-11-29 22:08:14 +02:00
fix: add timeouts and address race conditions in DNS challenge tests
- Add proper synchronization for DNS mock server - Fix race condition with thread-safe token access - Add timeouts to certificate acquisition to prevent test hanging - Improve error handling in DNS server - Normalize comments with unfuck-ai-comments
This commit is contained in:
@@ -242,7 +242,7 @@ func (h *Http) proxyHandler() http.HandlerFunc {
|
||||
IdleConnTimeout: h.Timeouts.IdleConn,
|
||||
TLSHandshakeTimeout: h.Timeouts.TLSHandshake,
|
||||
ExpectContinueTimeout: h.Timeouts.ExpectContinue,
|
||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: h.Insecure}, //nolint:gosec // G402: User defined option to disable verification for self-signed certificates
|
||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: h.Insecure}, //nolint:gosec // g402: User defined option to disable verification for self-signed certificates
|
||||
},
|
||||
ErrorLog: log.ToStdLogger(log.Default(), "WARN"),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user