From f4593c788a4cb2964b4818221c5a3cd464520678 Mon Sep 17 00:00:00 2001 From: frainzy1477 Date: Wed, 1 Jul 2020 12:36:28 +0800 Subject: [PATCH] 1.7.5.3a --- root/usr/share/clash/create/create.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/root/usr/share/clash/create/create.sh b/root/usr/share/clash/create/create.sh index d17b69e4..56a35642 100644 --- a/root/usr/share/clash/create/create.sh +++ b/root/usr/share/clash/create/create.sh @@ -909,11 +909,16 @@ dnshijack_set() return fi - if [ -z "$port" ]; then + if [ "$type" == "none" ] && [ ! -z "$port" ]; then + echo " - $ip:$port">>/tmp/dnshijack.yaml + elif [ "$type" == "none" ] && [ -z "$port" ]; then + echo " - $ip">>/tmp/dnshijack.yaml + elif [ -z "$port" ]; then echo " - $type$ip">>/tmp/dnshijack.yaml else echo " - $type$ip:$port">>/tmp/dnshijack.yaml fi + } config_load "clash"