mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-05-31 12:49:22 +00:00
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. |
||
|---|---|---|
| .. | ||
| transport | ||
| client.go | ||
| client_log.go | ||
| client_truncate.go | ||
| extension_edns0_subnet.go | ||
| rcode.go | ||
| router.go | ||
| transport_adapter.go | ||
| transport_dialer.go | ||
| transport_manager.go | ||
| transport_registry.go | ||