summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-01-01 15:31:03 +0100
committerErich Eckner <git@eckner.net>2021-01-02 18:30:47 +0100
commit627c3a6440393faed04f078092e84f6bb5c49640 (patch)
treecf1aafe8a65afd81fc9f268d9c731b10163f8755
parentb0ba3d02015484481c632d9732a6e2af234fae4f (diff)
downloadarchlinuxewe-627c3a6440393faed04f078092e84f6bb5c49640.tar.xz
neuesPerlPaket: add new socks proxy
-rwxr-xr-xneuesPerlPaket10
1 files changed, 8 insertions, 2 deletions
diff --git a/neuesPerlPaket b/neuesPerlPaket
index 17949a4ed..0791229ff 100755
--- a/neuesPerlPaket
+++ b/neuesPerlPaket
@@ -52,7 +52,11 @@ fi
. perlFunktionen
-seitenInhalt="$(curl -x socks5h://127.0.0.1:9050 -Ss "${url}")"
+seitenInhalt=$(
+ for socksHost in 127.0.0.1:9050 192.168.0.3:9050; do
+ curl -x "socks5h://${socksHost}" -Ss "${url}" && break
+ done
+)
pkgver="$(
echo "${seitenInhalt}" | \
@@ -82,7 +86,9 @@ dlUrlForPKGBUILD="$(
mkdir "${pkgname}"
cd "${pkgname}"
-curl -x socks5h://127.0.0.1:9050 -Ss -o "${dlUrl##*/}" "${dlUrl}"
+for socksHost in 127.0.0.1:9050 192.168.0.3:9050; do
+ curl -x "socks5h://${socksHost}" -Ss -o "${dlUrl##*/}" "${dlUrl}" && break
+done
if echo "${dlUrl}" | \
grep -q "/${cpanName}-v[0-9.]\+\.tar\.gz\$"; then