~修复clash基础内核启动失败的bug

~修复任务执行结果会重复发送的bug
This commit is contained in:
juewuy
2025-12-12 21:52:17 +08:00
parent b92fcf9de0
commit 68efa40094
2 changed files with 1 additions and 1 deletions

View File

@@ -410,6 +410,7 @@ modify_yaml() { #修饰clash配置文件
}
#dns配置
[ -z "$(cat "$CRASHDIR"/yamls/user.yaml 2>/dev/null | grep '^dns:')" ] && {
[ "$crashcore" != meta ] && dns_resolver='223.5.5.5'
cat >"$TMPDIR"/dns.yaml <<EOF
dns:
enable: true