mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-02 10:33:46 +00:00
Merge branch 'master' into Playerbot
This commit is contained in:
@@ -114,5 +114,13 @@ void WorldSocketMgr::OnSocketOpen(tcp::socket&& sock, uint32 threadIndex)
|
||||
|
||||
NetworkThread<WorldSocket>* WorldSocketMgr::CreateThreads() const
|
||||
{
|
||||
return new WorldSocketThread[GetNetworkThreadCount()];
|
||||
|
||||
NetworkThread<WorldSocket>* threads = new WorldSocketThread[GetNetworkThreadCount()];
|
||||
|
||||
bool proxyProtocolEnabled = sConfigMgr->GetOption<bool>("Network.EnableProxyProtocol", false, true);
|
||||
if (proxyProtocolEnabled)
|
||||
for (int i = 0; i < GetNetworkThreadCount(); i++)
|
||||
threads[i].EnableProxyProtocol();
|
||||
|
||||
return threads;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user