Commit Graph

8 Commits

Author SHA1 Message Date
世界
f085917d8c Fix DNS transports 2026-01-17 05:48:41 +08:00
世界
4eb91d69fe Fix DNS cache not working when domain strategy is set
The cache lookup was performed before rule matching, using the caller's
strategy (usually AsIS/0) instead of the resolved strategy. This caused
cache misses when ipv4_only was configured globally but the cache lookup
expected both A and AAAA records.

Remove LookupCache and ExchangeCache from Router, as the cache checks
inside client.Lookup and client.Exchange already handle caching correctly
after rule matching with the proper strategy and transport.
2025-12-21 16:59:10 +08:00
世界
ca912aa72f Add resolved service and DNS server 2025-07-08 13:14:41 +08:00
世界
873ab4b085 Add service component type 2025-07-08 13:14:41 +08:00
世界
96f078e252 Explicitly reject detour to empty direct outbounds 2025-07-08 13:12:28 +08:00
世界
f75ade1991 refactor: DNS 2025-07-08 13:12:14 +08:00
世界
3d16df288c Migrate components to library 2022-07-11 18:44:59 +08:00
世界
001dc5f62c Add dns client 2022-07-06 23:14:19 +08:00