Skip to content

Commit

Permalink
wget fix
Browse files Browse the repository at this point in the history
  • Loading branch information
merces committed Nov 27, 2024
1 parent 003d6cc commit 6d67f80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/net/bh_ipisblocked.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ bh_ipisblocked() {
pjlink="$(echo $project \
| cut -d ';' -f2)"

if bh_cmd_wget $pjlink -q -O - \
if wget -T10 $pjlink -q -O - \
| grep -Eo "([0-9]{1,3}\.){3}[0-9]{1,3}" \
| grep -E ^$ipaddress$ > /dev/null 2>&1
then
Expand Down
2 changes: 1 addition & 1 deletion src/net/bh_wgetr.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bh_wgetr() {
(( $# < 1 )) && return 1

wget -crw 2 --random-wait -U "$BASHACKS_WGET_USER_AGENT" "$1"
wget -crw 2 --random-wait -U "$bashacks_wget_user_agent" "$1"
}

0 comments on commit 6d67f80

Please sign in to comment.