mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Call HttpInit
in server
Otherwise `curl_global_init` would be called from the first `curl_easy_init`, but `curl_global_init` isn't threadsafe. Fixes #5195.
This commit is contained in:
parent
59c79faa00
commit
76ed324b66
|
@ -24,6 +24,7 @@
|
|||
#include <engine/shared/econ.h>
|
||||
#include <engine/shared/fifo.h>
|
||||
#include <engine/shared/filecollection.h>
|
||||
#include <engine/shared/http.h>
|
||||
#include <engine/shared/json.h>
|
||||
#include <engine/shared/masterserver.h>
|
||||
#include <engine/shared/netban.h>
|
||||
|
@ -3688,6 +3689,8 @@ void CServer::RegisterCommands()
|
|||
m_pStorage = Kernel()->RequestInterface<IStorage>();
|
||||
m_pAntibot = Kernel()->RequestInterface<IEngineAntibot>();
|
||||
|
||||
HttpInit(m_pStorage);
|
||||
|
||||
// register console commands
|
||||
Console()->Register("kick", "i[id] ?r[reason]", CFGFLAG_SERVER, ConKick, this, "Kick player with specified id for any reason");
|
||||
Console()->Register("status", "?r[name]", CFGFLAG_SERVER, ConStatus, this, "List players containing name or all players");
|
||||
|
|
Loading…
Reference in a new issue