sing-box/common/httpclient
世界 961b56b176
Use domain resolver for ECH config queries
When ECH is enabled without a static config, the HTTPS record query for
the ECH config list went through the DNS rules instead of the domain
resolver, and the migration of outbound DNS rule items to the domain
resolver left no way to select a DNS server for it. A rule rejecting
HTTPS records refused the query, and a default DNS server detoured
through the same outbound waited for its own connection until the query
timed out.

Send the query to the domain resolver of the dial fields, then the
default domain resolver, then the only DNS server, and fail it when
none of them is available. DNS servers must set their own domain
resolver for it, as they do for a domain server address.
2026-11-16 06:50:44 +00:00
..
apple_transport_darwin.go Fix start lifecycle 2026-08-30 17:41:43 +08:00
apple_transport_darwin.h Add Windows TLS engine 2026-08-30 17:41:40 +08:00
apple_transport_darwin.m Add Windows TLS engine 2026-08-30 17:41:40 +08:00
apple_transport_darwin_test.go Fix URL test failover for routed connections 2026-10-23 19:57:09 +08:00
apple_transport_stub.go Fix start lifecycle 2026-08-30 17:41:43 +08:00
client.go Use domain resolver for ECH config queries 2026-11-16 06:50:44 +00:00
context.go Refactor: HTTP clients, unified HTTP2/QUIC options, Apple engines 2026-08-30 17:41:39 +08:00
helpers.go Scope HTTP/2 fallback and HTTP/3 broken state per authority 2026-08-30 17:41:39 +08:00
helpers_test.go Scope HTTP/2 fallback and HTTP/3 broken state per authority 2026-08-30 17:41:39 +08:00
http1_transport.go Refactor: HTTP clients, unified HTTP2/QUIC options, Apple engines 2026-08-30 17:41:39 +08:00
http2_config.go Refactor: HTTP clients, unified HTTP2/QUIC options, Apple engines 2026-08-30 17:41:39 +08:00
http2_fallback_transport.go Scope HTTP/2 fallback and HTTP/3 broken state per authority 2026-08-30 17:41:39 +08:00
http2_fallback_transport_test.go Scope HTTP/2 fallback and HTTP/3 broken state per authority 2026-08-30 17:41:39 +08:00
http2_transport.go Refactor: HTTP clients, unified HTTP2/QUIC options, Apple engines 2026-08-30 17:41:39 +08:00
http3_transport.go Fix dial contexts cancelled while connections are still in use 2026-09-20 22:24:38 +08:00
http3_transport_stub.go Refactor: HTTP clients, unified HTTP2/QUIC options, Apple engines 2026-08-30 17:41:39 +08:00
http3_transport_test.go Scope HTTP/2 fallback and HTTP/3 broken state per authority 2026-08-30 17:41:39 +08:00
managed_transport.go Close idle connections of unreferenced outbounds and DNS servers 2026-10-02 18:00:09 +08:00
manager.go Refactor lifecycle to scoped cleanup 2026-10-09 12:36:03 +08:00