Преглед изворни кода

[e-badips] Show curl error if any

Edvinas Valatka пре 9 година
родитељ
комит
7576f33f7b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      e-badips

+ 1 - 1
e-badips

@@ -7,7 +7,7 @@ source $CONFD/config
 tmp=$(mktemp)
 tmp=$(mktemp)
 trap "/bin/rm -f ${tmp}" EXIT SIGHUP SIGINT SIGTERM
 trap "/bin/rm -f ${tmp}" EXIT SIGHUP SIGINT SIGTERM
 
 
-curl -f -s -m 60 -o $tmp "https://www.badips.com/get/list/${banservice}/${banlevel}?age=${rangecheck}"
+curl -f -s -S -m 60 -o $tmp "https://www.badips.com/get/list/${banservice}/${banlevel}?age=${rangecheck}"
 while read -r ip ; do
 while read -r ip ; do
     ipset -! add ${banset} ${ip} timeout $bantime
     ipset -! add ${banset} ${ip} timeout $bantime
 done < $tmp
 done < $tmp