🔗 Sub-Store 快速生成 🐱 clash.meta(mihomo) 配置示例更新
▎ 补充一个使用 YAML 解析替换 proxy-providers 的例子:
const yaml = ProxyUtils.yaml.safeLoad($content ?? $files[0])
yaml['proxy-providers'] = {
provider: {
url: 'https://sub.com/share/col/name?token=b&target=ClashMeta',
type: 'http',
interval: 86400,
'health-check': {
enable: true,
url: 'https://www.gstatic.com/generate_204',
interval: 300
}
}
}
$content = ProxyUtils.yaml.safeDump(yaml)
原消息
▎ 补充一个使用 YAML 解析替换 proxy-providers 的例子:
const yaml = ProxyUtils.yaml.safeLoad($content ?? $files[0])
yaml['proxy-providers'] = {
provider: {
url: 'https://sub.com/share/col/name?token=b&target=ClashMeta',
type: 'http',
interval: 86400,
'health-check': {
enable: true,
url: 'https://www.gstatic.com/generate_204',
interval: 300
}
}
}
$content = ProxyUtils.yaml.safeDump(yaml)
原消息