فهرست منبع

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

zfl9 8 سال پیش
والد
کامیت
c221d2e3ba
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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 {