mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Merge pull request #1747 from rjdjohnston/fix/increase-curl-timeout
fix: Increase curl max-time to 15 seconds for connectivity check
This commit is contained in:
commit
624e43f954
@ -299,7 +299,7 @@ function _check_internet() {
|
|||||||
tput civis # hide cursor
|
tput civis # hide cursor
|
||||||
|
|
||||||
# run check in background
|
# run check in background
|
||||||
( curl -Is --connect-timeout 3 --max-time 5 https://github.com | head -n 1 | grep "HTTP/2 200" >/dev/null ) &
|
( curl -Is --connect-timeout 3 --max-time 15 https://github.com | head -n 1 | grep "HTTP/2 200" >/dev/null ) &
|
||||||
local pid=$!
|
local pid=$!
|
||||||
|
|
||||||
# display spinner while curl runs
|
# display spinner while curl runs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user