Merge pull request #255 from put-go/master
Text Encoding / utf8 (push) Successful in 44s

删除密钥和订阅应为空
This commit is contained in:
Arvin
2026-05-08 20:11:12 +08:00
committed by GitHub
+8
View File
@@ -394,6 +394,7 @@ config_allow_lan() {
set_config_allow_lan() {
local value="$1"
local file="$CONFIG_DIR/template.yaml"
local mixin_file_path
case "$value" in
true|false) ;;
@@ -404,6 +405,13 @@ set_config_allow_lan() {
ALLOW_LAN_VALUE="$value" "$(yq_bin)" eval -i '
.["allow-lan"] = (env(ALLOW_LAN_VALUE) == "true")
' "$file"
ensure_mixin_file
mixin_file_path="$(mixin_file)"
ALLOW_LAN_VALUE="$value" "$(yq_bin)" eval -i '
.override = (.override // {}) |
.override["allow-lan"] = (env(ALLOW_LAN_VALUE) == "true")
' "$mixin_file_path"
}
subscription_url_scheme() {