diff --git a/lib/XBPQ.jar b/lib/XBPQ.jar index 379a5374..3b512376 100644 Binary files a/lib/XBPQ.jar and b/lib/XBPQ.jar differ diff --git a/lib/aliproxy.gz b/lib/aliproxy.gz index 69054e0b..60560045 100644 Binary files a/lib/aliproxy.gz and b/lib/aliproxy.gz differ diff --git a/lib/aliproxy.md5 b/lib/aliproxy.md5 index bfeb72bf..12c95d66 100644 --- a/lib/aliproxy.md5 +++ b/lib/aliproxy.md5 @@ -1 +1 @@ -06c8e8853070dce1a25519138665aa6c +44435fe173e06dc82c26a00ecf1e3bef diff --git a/lib/clash2singbox.gz b/lib/clash2singbox.gz new file mode 100644 index 00000000..c95b68f8 Binary files /dev/null and b/lib/clash2singbox.gz differ diff --git a/lib/sing-box.gz b/lib/sing-box.gz new file mode 100644 index 00000000..03ea964b Binary files /dev/null and b/lib/sing-box.gz differ diff --git a/lib/singbox.json b/lib/singbox.json new file mode 100644 index 00000000..879b66b2 --- /dev/null +++ b/lib/singbox.json @@ -0,0 +1,222 @@ +{ + "log": { + "level": "info", + "timestamp": true + }, + "dns": { + "servers": [ + { + "tag": "remote", + "address": "https://8.8.8.8/dns-query", + "detour": "select" + }, + { + "tag": "local", + "address": "https://223.5.5.5/dns-query", + "detour": "direct" + }, + { + "tag": "block", + "address": "rcode://success" + }, + { + "tag": "fakeip", + "address": "fakeip" + } + ], + "rules": [ + { + "outbound": "any", + "server": "local" + }, + { + "geosite": "category-ads-all", + "server": "block", + "disable_cache": true + }, + { + "query_type": [ + "A", + "AAAA" + ], + "server": "fakeip", + "rewrite_ttl": 1 + }, + { + "clash_mode": "Global", + "server": "remote" + }, + { + "clash_mode": "Direct", + "server": "local" + }, + { + "rule_set": "geosite-geolocation-cn", + "server": "local" + }, + { + "clash_mode": "Default", + "server": "remote" + }, + { + "type": "logical", + "mode": "and", + "rules": [ + { + "rule_set": "geosite-geolocation-!cn", + "invert": true + }, + { + "rule_set": "geoip-cn" + } + ], + "server": "local" + } + ], + "fakeip": { + "enabled": true, + "inet4_range": "198.18.0.0/15", + "inet6_range": "fc00::/18" + }, + "strategy": "prefer_ipv4", + "independent_cache": true + }, + "inbounds": [ + { + "type": "socks", + "tag": "socks-in", + "listen": "0.0.0.0", + "listen_port": 10173, + "sniff": true, + "sniff_override_destination": false, + "domain_strategy": "prefer_ipv4" + }, + { + "type": "mixed", + "tag": "mixed-in", + "listen": "0.0.0.0", + "listen_port": 10172, + "sniff": true, + "sniff_override_destination": false, + "domain_strategy": "prefer_ipv4", + "set_system_proxy": false + } + ], + "outbounds": [ + { + "type": "selector", + "tag": "select", + "outbounds": [ + "urltest" + ], + "default": "urltest" + }, + { + "type": "urltest", + "tag": "urltest", + "interval": "15m", + "outbounds": null + }, + { + "type": "direct", + "tag": "direct" + }, + { + "type": "block", + "tag": "block" + }, + { + "type": "dns", + "tag": "dns-out" + } + ], + "route": { + "rules": [ + { + "geosite": "category-ads-all", + "outbound": "block" + }, + { + "type": "logical", + "mode": "or", + "rules": [ + { + "protocol": "dns" + }, + { + "port": 53 + } + ], + "outbound": "dns-out" + }, + { + "ip_is_private": true, + "outbound": "direct" + }, + { + "clash_mode": "Direct", + "outbound": "direct" + }, + { + "clash_mode": "Global", + "outbound": "select" + }, + { + "type": "logical", + "mode": "or", + "rules": [ + { + "port": 853 + }, + { + "network": "udp", + "port": 443 + }, + { + "protocol": "stun" + } + ], + "outbound": "block" + }, + { + "rule_set": [ + "geoip-cn", + "geosite-geolocation-cn" + ], + "outbound": "direct" + } + ], + "rule_set": [ + { + "type": "remote", + "tag": "geoip-cn", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs" + }, + { + "type": "remote", + "tag": "geosite-geolocation-cn", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs" + }, + { + "type": "remote", + "tag": "geosite-geolocation-!cn", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs" + } + ], + "auto_detect_interface": false + }, + "experimental": { + "cache_file": { + "enabled": true, + "store_rdrc": true + }, + "clash_api": { + "external_controller": "127.0.0.1:19090", + "default_mode": "Enhanced" + } + } +} + diff --git a/lib/tokentemplate.json b/lib/tokentemplate.json index cc48c425..f8865ee1 100644 --- a/lib/tokentemplate.json +++ b/lib/tokentemplate.json @@ -58,5 +58,9 @@ "wgcf_vless_network":"ws", "wgcf_vless_tls":false, "libxl_url":"./libxl_thunder_sdk.so", -"youtube_proxy":"" +"youtube_proxy":"proxy", +"singbox_url":"./sing-box.gz", +"singbox_subscribe_url":"", +"singbox_clash2singbox_url":"./clash2singbox.gz", +"singbox_template_url":"./singbox.json" }