From 090764fc4cd34888dffc5ba758edb5de81e4bcbf Mon Sep 17 00:00:00 2001 From: zhongjin Date: Tue, 29 Nov 2022 22:25:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'README.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cf22c18..cd2e8e5 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ voipbl.sh ``` #!/bin/bash -URL="http://www.voipbl.org/update/" +URL="https://voipbl.org/update/" set -e echo "Downloading rules from VoIP Blacklist" @@ -19,7 +19,7 @@ wget -qO - $URL -O /tmp/voipbl.txt echo "Loading rules..." # Check if rule set exists and create one if required -if ! $(/usr/sbin/ipset list voipbl > /dev/null 2>&1); then +if ! $(/sbin/ipset list voipbl > /dev/null 2>&1); then ipset -N voipbl iphash fi @@ -33,7 +33,7 @@ ipset destroy voipbl_temp > /dev/null 2>&1 || true ipset -N voipbl_temp iphash hashsize 131072 maxelem 260000 cat /tmp/voipbl.txt |\ - awk '{print "if ! [[ \""$1"\" =~ ^#$|^0.0.0.0 ]]; then /usr/sbin/ipset -A voipbl_temp \""$1"\" ; fi;"}' | sh + awk '{print "if ! [[ \""$1"\" =~ ^#$|^0.0.0.0 ]]; then /sbin/ipset -A voipbl_temp \""$1"\" ; fi;"}' | sh ipset swap voipbl_temp voipbl ipset destroy voipbl_temp || true