diff --git a/fancyss/ss/ssconfig.sh b/fancyss/ss/ssconfig.sh index 7d1b1cf5..4ddc862c 100755 --- a/fancyss/ss/ssconfig.sh +++ b/fancyss/ss/ssconfig.sh @@ -2697,7 +2697,7 @@ start_chinadns_ng(){ # for hosts file cp -rf /tmp/etc/hosts /tmp/etc/chng_hosts - sed -i 's/\.[[:space:]]/ /g' /etc/chng_hosts + sed -i -e 's/\.[[:space:]]/ /g' -e 's/\.$//' /tmp/etc/chng_hosts cat >>"/tmp/chinadns_ng.conf" <<-EOF @@ -2705,7 +2705,7 @@ start_chinadns_ng(){ filter-qtype 64,65 # hosts - hosts /etc/chng_hosts + hosts /tmp/etc/chng_hosts # dns 缓存 cache 8192