From 73dc3a7eb0fac1e46e73bcb76a5662a0c52888a0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 19 Jun 2022 11:18:45 +0800 Subject: [PATCH] update 2022-06-19 11:18:45 --- luci-app-openclash/root/usr/share/openclash/yml_change.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/luci-app-openclash/root/usr/share/openclash/yml_change.sh b/luci-app-openclash/root/usr/share/openclash/yml_change.sh index 95bc58e14..9838aaea3 100644 --- a/luci-app-openclash/root/usr/share/openclash/yml_change.sh +++ b/luci-app-openclash/root/usr/share/openclash/yml_change.sh @@ -221,18 +221,18 @@ yml_dns_get() LOG_OUT "Warning: Only Meta Core Support proxy-server-nameserver, Skip Setting【$dns_type$dns_address】" fi - if [ "$specific_group" != "Disable" ] && [ "$enable_meta_core" = "1" ]; then + if [ "$specific_group" != "Disable" ] && [ -n "$specific_group" ] && [ "$enable_meta_core" = "1" ]; then specific_group="#$specific_group" - elif [ "$specific_group" != "Disable" ]; then + elif [ "$specific_group" != "Disable" ] && [ -n "$specific_group" ]; then LOG_OUT "Warning: Only Meta Core Support Specific Group, Skip Setting【$dns_type$dns_address】" specific_group="" else specific_group="" fi - if [ "$interface" != "Disable" ] && [ "$enable_meta_core" != "1" ]; then + if [ "$interface" != "Disable" ] && [ -n "$interface" ] && [ "$enable_meta_core" != "1" ]; then interface="#$interface" - elif [ "$interface" != "Disable" ]; then + elif [ "$interface" != "Disable" ] && [ -n "$interface" ]; then LOG_OUT "Warning: Meta Core not Support Specific Interface, Skip Setting【$dns_type$dns_address】" interface="" else