Parcourir la source

修正 update-chnroute 的逻辑,修复滞后更新问题

zfl9 il y a 8 ans
Parent
commit
c221d2e3ba
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      ss-tproxy

+ 2 - 2
ss-tproxy

@@ -133,8 +133,8 @@ function update_gfwlist {
 function update_chnroute {
     #chnroute_url="http://f.ip.cn/rt/chnroutes.txt"
     chnroute_url="https://github.com/17mon/china_ip_list/raw/master/china_ip_list.txt"
-    { curl -4sSkL "$chnroute_url"; echo; } | grep -Ev '^\s*$|^\s*#' |
-        tee >$chinadns_chnroute >(echo '-N chnroute hash:net' >$iptables_ipset_file; xargs -n1 echo -A chnroute >>$iptables_ipset_file)
+    { curl -4sSkL "$chnroute_url"; echo; } | grep -Ev '^\s*$|^\s*#' >$chinadns_chnroute
+    echo '-N chnroute hash:net' >$iptables_ipset_file; xargs -n1 echo -A chnroute <$chinadns_chnroute >>$iptables_ipset_file
 }
 
 function flush_cache {