mirror of
https://github.com/CachyOS/New-Cli-Installer.git
synced 2025-01-23 14:32:22 +08:00
👷 utils: increase connection check timeout
This commit is contained in:
parent
30a810138b
commit
10ff2eeb73
@ -102,7 +102,7 @@ bool is_connected() noexcept {
|
||||
#ifdef NDEVENV
|
||||
/* clang-format off */
|
||||
auto r = cpr::Get(cpr::Url{"https://cachyos.org"},
|
||||
cpr::Timeout{1000});
|
||||
cpr::Timeout{15000}); // 15s
|
||||
/* clang-format on */
|
||||
return cpr::status::is_success(static_cast<std::int32_t>(r.status_code)) || cpr::status::is_redirect(static_cast<std::int32_t>(r.status_code));
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user