mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Enforce minimum for curl(_file_download)_timeout
This commit is contained in:
@@ -47,6 +47,7 @@ HTTPFetchRequest::HTTPFetchRequest() :
|
||||
connect_timeout(10 * 1000),
|
||||
useragent(std::string(PROJECT_NAME_C "/") + g_version_hash + " (" + porting::get_sysinfo() + ")")
|
||||
{
|
||||
timeout = std::max(timeout, MIN_HTTPFETCH_TIMEOUT_INTERACTIVE);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user