mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add one more curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);
This commit is contained in:
parent
3823878305
commit
5917e86297
1 changed files with 1 additions and 0 deletions
|
@ -259,6 +259,7 @@ void sendAnnounce(std::string action, u16 clients) {
|
|||
if (curl)
|
||||
{
|
||||
CURLcode res;
|
||||
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);
|
||||
curl_easy_setopt(curl, CURLOPT_URL, (g_settings->get("serverlist_url")+std::string("/announce?json=")+curl_easy_escape(curl, writer.write( server ).c_str(), 0)).c_str());
|
||||
//curl_easy_setopt(curl, CURLOPT_USERAGENT, "minetest");
|
||||
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, ServerList::ServerAnnounceCallback);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue