~providers功能适配1.9.0+版本singboxp内核

~修复启动时提示ip命令相关报错
This commit is contained in:
juewuy
2024-06-08 09:46:40 +08:00
parent 1dee6eaaed
commit 44efdb99ea
2 changed files with 15 additions and 15 deletions

View File

@@ -347,7 +347,7 @@ gen_clash_providers(){ #生成clash的providers配置文件
fi
cat >> $TMPDIR/providers/providers.yaml <<EOF
${1}:
type: http
type: $type
url: "$download_url"
path: "$path"
interval: 43200
@@ -432,7 +432,7 @@ gen_singbox_providers(){ #生成singbox的providers配置文件
cat >> ${TMPDIR}/providers/providers.json <<EOF
{
"tag": "${1}",
"type": "file",
"type": "local",
"healthcheck_url": "https://www.gstatic.com/generate_204",
"healthcheck_interval": "10m",
"path": "${2}"
@@ -442,7 +442,7 @@ EOF
cat >> ${TMPDIR}/providers/providers.json <<EOF
{
"tag": "${1}",
"type": "http",
"type": "remote",
"healthcheck_url": "https://www.gstatic.com/generate_204",
"healthcheck_interval": "10m",
"download_url": "${2}",