The universal proxy platform https://sing-box.sagernet.org/
Find a file
世界 1ebff74c21
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
.github Update Go to 1.25.5 2025-12-13 20:11:29 +08:00
adapter Fix DNS cache not working when domain strategy is set 2025-12-21 16:59:10 +08:00
clients Bump version 2025-12-14 00:09:19 +08:00
cmd release: Improve publish testflight 2025-10-01 10:22:44 +08:00
common Improve HTTPS DNS transport 2025-10-09 23:45:23 +08:00
constant Add SSM API service 2025-07-08 13:14:42 +08:00
dns Fix DNS cache not working when domain strategy is set 2025-12-21 16:59:10 +08:00
docs Bump version 2025-12-14 00:09:19 +08:00
experimental Do not reset network on sleep or wake 2025-09-23 16:17:44 +08:00
include Minor fixes 2025-07-08 13:14:42 +08:00
log Fix context in v2ray http transports 2025-03-14 17:07:17 +08:00
option Update golangci-lint to v2 2025-08-13 23:37:40 +08:00
protocol Fix naive inbound 2025-12-12 21:19:28 +08:00
release Fix systemd package 2025-07-08 13:14:43 +08:00
route Fix race codes 2025-09-12 21:58:48 +08:00
service ssm-api: Fix save cache 2025-11-04 11:00:43 +08:00
test Simplify slice to array conversion 2025-08-10 20:06:28 +08:00
transport Fix websocket log handling 2025-09-23 16:12:29 +08:00
.fpm_openwrt release: Add openwrt packages 2025-04-18 08:54:40 +08:00
.fpm_systemd Fix systemd package 2025-07-08 13:14:43 +08:00
.gitignore Update .gitignore 2025-10-07 13:37:11 +08:00
.gitmodules platform: Unify client versions 2024-02-24 13:20:27 +08:00
.golangci.yml Update golangci-lint to v2 2025-08-13 23:37:40 +08:00
.goreleaser.fury.yaml Add resolved service and DNS server 2025-07-08 13:14:41 +08:00
.goreleaser.yaml Add resolved service and DNS server 2025-07-08 13:14:41 +08:00
box.go Fix resolved service 2025-08-16 00:09:29 +08:00
debug.go Fix hysteria bytes format 2025-04-29 20:45:19 +08:00
debug_http.go Fix hysteria bytes format 2025-04-29 20:45:19 +08:00
debug_stub.go Fix pprof URL path 2023-12-29 18:00:40 +08:00
debug_unix.go Fix pprof URL path 2023-12-29 18:00:40 +08:00
Dockerfile Use --no-cache --upgrade option in apk add 2025-11-04 11:00:41 +08:00
go.mod Fix socks response 2025-10-27 18:03:05 +08:00
go.sum Fix socks response 2025-10-27 18:03:05 +08:00
LICENSE Update LICENSE 2023-03-27 08:20:51 +08:00
Makefile Pin gofumpt and golangci-lint versions 2025-09-23 16:33:42 +08:00
mkdocs.yml Add SSM API service 2025-07-08 13:14:42 +08:00
README.md documentation: Add appreciate for Warp 2025-10-16 21:43:12 +08:00

Sponsored by Warp, built for coding with multiple AI agents

Warp sponsorship

sing-box

The universal proxy platform.

Packaging status

Documentation

https://sing-box.sagernet.org

License

Copyright (C) 2022 by nekohasekai <contact-sagernet@sekai.icu>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

In addition, no derivative work may use the name or imply association
with this application without prior consent.