mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
fix: Increase curl max-time to 15 seconds for connectivity check
This commit is contained in:
parent
aa49dcf32c
commit
55b6c81eca
@ -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