mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-25 17:10:27 +00:00
curl timeout
This commit is contained in:
parent
60d45e7b51
commit
0015b03769
2 changed files with 2 additions and 2 deletions
|
@ -322,7 +322,7 @@ function fastest_url() {
|
|||
fastest_time=0
|
||||
|
||||
for url in "${urls[@]}"; do
|
||||
if curl --output /dev/null --silent --head --fail "$url"; then
|
||||
if curl --output /dev/null --silent --head --fail --max-time 3 "$url"; then
|
||||
data="url is available"
|
||||
else
|
||||
continue
|
||||
|
|
|
@ -77,7 +77,7 @@ function fastest_url() {
|
|||
fastest_time=0
|
||||
|
||||
for url in "${urls[@]}"; do
|
||||
if curl --output /dev/null --silent --head --fail "$url"; then
|
||||
if curl --output /dev/null --silent --head --fail --max-time 3 "$url"; then
|
||||
data="url is available"
|
||||
else
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue