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. |
||
|---|---|---|
| .. | ||
| endpoint | ||
| inbound | ||
| outbound | ||
| service | ||
| certificate.go | ||
| connections.go | ||
| dns.go | ||
| endpoint.go | ||
| experimental.go | ||
| fakeip.go | ||
| fakeip_metadata.go | ||
| handler.go | ||
| inbound.go | ||
| lifecycle.go | ||
| lifecycle_legacy.go | ||
| network.go | ||
| outbound.go | ||
| prestart.go | ||
| router.go | ||
| rule.go | ||
| service.go | ||
| ssm.go | ||
| time.go | ||
| upstream.go | ||
| upstream_legacy.go | ||
| v2ray.go | ||