更新支持 Surge
新增 url scheme
增强查看连接 能打 source ip tag
- ❤️8
- 🤡1
✨ 基于 CLIProxyAPI 的深度增强版 — 补强了生产级管理层、Web 控制面板托管能力,以及面向日常运维的终端 TUI。
http_proxy, https_proxy, all_proxyall_proxy=socks5://a:[email protected]:7890, http_proxy=http://127.0.0.1:7890proxy 参数传进去(如 图4, 此参数见 图3) 举例: socks5://a:[email protected]:7890, http://127.0.0.1:7890SUB_STORE_BACKEND_DEFAULT_PROXY (其实就是 3)
https://raw.githubusercontent.com/xream/scripts/main/surge/modules/sub-store-scripts/sing-box/template.js#type=组合订阅&name=自建&outbound=🕳ℹ️^🇭🇰 HKG$🏷ℹ️港|hk|hongkong|kong kong|🇭🇰
https://raw.githubusercontent.com/xream/scripts/main/surge/modules/sub-store-scripts/sing-box/template.js#type=组合订阅&name=机场&outbound=🕳ℹ️^🇭🇰 HKG-R$🏷ℹ️港|hk|hongkong|kong kong|🇭🇰
detour: HKG-R. 没优化, 反正能用(config = JSON.parse($content ?? $files[0])
const relay = {
'🇭🇰 HKG': '🇭🇰 HKG-R',
// 其他的自己加
}
config.outbounds.map(outbound => {
const r = relay[outbound.tag]
if(r && Array.isArray(outbound.outbounds) && outbound.outbounds.length > 0){
outbound.outbounds.map(tag => {
config.outbounds.find(outbound => outbound.tag === tag).detour = r
})
}
})
$content = JSON.stringify(config, null, 2)