From 6c6b1870b373ff43a5758c07213719a19c8ed4c8 Mon Sep 17 00:00:00 2001 From: dnomd343 Date: Thu, 14 Oct 2021 20:11:43 +0800 Subject: [PATCH] feat: get qqwry.dat via socks5 link --- backend/qqwryUpdate.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/backend/qqwryUpdate.sh b/backend/qqwryUpdate.sh index 138378f..d6a50cb 100755 --- a/backend/qqwryUpdate.sh +++ b/backend/qqwryUpdate.sh @@ -1,10 +1,19 @@ #!/bin/sh +ua="Mozilla/3.0 (compatible; Indy Library)" + cd `dirname $0` mkdir -p temp cd temp -wget http://update.cz88.net/ip/copywrite.rar -wget http://update.cz88.net/ip/qqwry.rar + +if [ -n "$SOCKS5_CN" ]; then + socks5=" --socks5 $SOCKS5_CN" +else + socks5="" +fi + +curl http://update.cz88.net/ip/copywrite.rar -o copywrite.rar$socks5 --user-agent '$ua' +curl http://update.cz88.net/ip/qqwry.rar -o qqwry.rar$socks5 --user-agent '$ua' cat > unlock.php <