Skip to content

Commit

Permalink
1.7.5.3a
Browse files Browse the repository at this point in the history
  • Loading branch information
frainzy1477 committed Jul 1, 2020
1 parent 85279b8 commit f4593c7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion root/usr/share/clash/create/create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f4593c7

Please sign in to comment.