fix: Repeater 直连拨号改由请求超时控制,补充 DNS 重绑定与 HTTP/2 测试(Codex gpt-6.1-sol)(#42)

This commit is contained in:
RuoJi6 committed 2026-10-24 23:42:30 +08:00
1 parent 5e908e9f39
commit 91d2fe456c
2 files changed
+48 -2

No files matched your search

+3 -2
View File
@@ -241,9 +241,10 @@ func (s *Server) repeaterTransport(useRecordingProxy, insecure bool) http.RoundT
transport.DialTLSContext = nil
transport.DialTLS = nil
transport.Dial = nil
// Let the request context enforce timeout_ms for the entire dial.
transport.DialContext = (&net.Dialer{
Timeout: 15 * time.Second, KeepAlive: 30 * time.Second,
Control: repeaterBlockSensitiveDial,
KeepAlive: 30 * time.Second,
Control: repeaterBlockSensitiveDial,
}).DialContext
}
if insecure {