plugin/forward: bound DoT connection setup for retries (#8543)

Signed-off-by: houyuwushang <liuluoqianqiu@outlook.com>
This commit is contained in:
houyuwushang
2026-09-19 07:56:31 +08:00
committed by GitHub
parent 8f2d1cb7f4
commit ce5ee05bee
6 changed files with 401 additions and 3 deletions

View File

@@ -2,6 +2,7 @@ package proxy
import (
"errors"
"time"
)
var (
@@ -25,4 +26,7 @@ type Options struct {
HCRecursionDesired bool
// HCDomain sets domain for Proxy healthcheck requests
HCDomain string
// TLSConnectDeadline bounds the TCP dial and TLS handshake for DoT, not the DNS exchange.
// A zero value leaves the adaptive dial timeout and caller context as the only limits.
TLSConnectDeadline time.Time
}