plugin/forward: Fix issue in DoH health checks used a default TLS instead of the configured CA (#8279)

This PR fixes issue in forward plugin where default TLS instead of
configured CA was used.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang
2026-07-13 17:34:18 -07:00
committed by GitHub
parent 4ebf66a74e
commit e16e829181
2 changed files with 28 additions and 0 deletions

View File

@@ -244,6 +244,7 @@ func parseStanza(c *caddy.Controller) (*Forward, error) {
Timeout: 2 * time.Second,
}
f.proxies[i].SetHTTPClient(&c)
f.proxies[i].SetTLSConfig(f.tlsConfig)
f.proxies[i].SetDOHRequestOptions(f.dohMethod)
}