mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-02-10 22:38:50 -06:00
sys: Warn user if a net request fails while a proxy is set (#821)
* tell the user if he have a proxy set * Improved log message Co-authored-by: Nik <werwolv98@gmail.com>
This commit is contained in:
@@ -124,6 +124,9 @@ namespace hex {
|
||||
char *url = nullptr;
|
||||
curl_easy_getinfo(this->m_ctx, CURLINFO_EFFECTIVE_URL, &url);
|
||||
log::error("Net request '{0}' failed with error {1}: '{2}'", url, u32(result), curl_easy_strerror(result));
|
||||
if(!Net::s_proxyUrl.empty()){
|
||||
log::info("A custom proxy '{}' is in use. Is it working correctly?", Net::s_proxyUrl);
|
||||
}
|
||||
}
|
||||
|
||||
long responseCode = 0;
|
||||
@@ -279,4 +282,4 @@ namespace hex {
|
||||
Net::s_proxyUrl = url;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user