SagerNet / sing-box

The universal proxy platform
https://sing-box.sagernet.org/
Other
20.29k stars 2.42k forks source link

最新预览版1.11.0-alpha.2 无法正确缓存远程规则集 #2231

Closed Bubble-droid closed 3 weeks ago

Bubble-droid commented 3 weeks ago

操作系统

Linux

系统版本

Arch Linux

安装类型

sing-box 原始命令行程序

如果您使用图形客户端程序,请提供该程序版本。

No response

版本

sing-box version 1.11.0-alpha.2

Environment: go1.23.2 linux/amd64
Tags: with_gvisor,with_quic,with_dhcp,with_wireguard,with_ech,with_utls,with_reality_server,with_acme,with_clash_api
Revision: 58feb8e24d6dce0475c3e3706d11459ccd4c7ff7
CGO: disabled

描述

已配置 "experimental": { "cache_file": { "enabled": true } } 但sing-box无法正确缓存远程规则集,导致每次启动需要重新下载规则集,又因中国大陆地区的网络特殊性,无法稳定下载规则集文件,需要启动多次才能正常运行,android客户端同样如此

重现方式

已配置cache_file "experimental": { "cache_file": { "enabled": true, "store_fakeip": true, "store_rdrc": true, "path": "./cache.db", "rdrc_timeout": "7d" } },

$ ./sing-box-latest run -c config.json

日志

FATAL[0000] start service: initialize rule-set[18]: initial rule-set: 📢Google: Get "https://raw.githubusercontent.com/SagerNet/sing-geosite/refs/heads/rule-set/geosite-google.srs": read tcp 192.168.2.10:50388->112.29.210.236:32469: use of closed network connection | initialize rule-set[18]: initial rule-set: ✈Telegram: Get "https://raw.githubusercontent.com/SagerNet/sing-geosite/refs/heads/rule-set/geosite-telegram.srs": read tcp 192.168.2.10:50390->112.29.210.236:32469: use of closed network connection | initialize rule-set[18]: initial rule-set: GEOLOCATION-!CN: Get "https://raw.githubusercontent.com/SagerNet/sing-geosite/refs/heads/rule-set/geosite-geolocation-!cn.srs": initialize rule-set[18]: initial rule-set: 📢Google: Get "https://raw.githubusercontent.com/SagerNet/sing-geosite/refs/heads/rule-set/geosite-google.srs": read tcp 192.168.2.10:50388->112.29.210.236:32469: use of closed network connection | initialize rule-set[18]: initial rule-set: 📢Google-CN: Get "https://raw.githubusercontent.com/SagerNet/sing-geosite/refs/heads/rule-set/geosite-google%40cn.srs": initialize rule-set[18]: initial rule-set: 📢Google: Get "https://raw.githubusercontent.com/SagerNet/sing-geosite/refs/heads/rule-set/geosite-google.srs": read tcp 192.168.2.10:50388->112.29.210.236:32469: use of closed network connection | initialize rule-set[18]: initial rule-set: ✈Telegram-IP: Get "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/sing/geo/geoip/telegram.srs": initialize rule-set[18]: initial rule-set: 📢Google: Get "https://raw.githubusercontent.com/SagerNet/sing-geosite/refs/heads/rule-set/geosite-google.srs": read tcp 192.168.2.10:50388->112.29.210.236:32469: use of closed network connection

支持我们

完整性要求

tanst commented 3 weeks ago

这个缓存不是 DNS 的缓存?

Bubble-droid commented 3 weeks ago

这个缓存不是 DNS 的缓存?

Screenshot_2024_1105_102812 后续更新版本已解决了此问题