Enable validation according to WebSocket resource and origin.
This commit is contained in:
@@ -52,7 +52,8 @@ ServerManagerIrc::~ServerManagerIrc()
|
||||
}
|
||||
|
||||
void
|
||||
ServerManagerIrc::Init(unsigned serverPort, unsigned websocketPort, bool ipv6, int proto, const string &logDir)
|
||||
ServerManagerIrc::Init(unsigned serverPort, unsigned websocketPort, bool ipv6, int proto, const string &logDir,
|
||||
const std::string &webSocketResource, const std::string &webSocketOrigin)
|
||||
{
|
||||
boost::shared_ptr<IrcThread> tmpIrcAdminThread;
|
||||
boost::shared_ptr<IrcThread> tmpIrcLobbyThread;
|
||||
@@ -83,7 +84,7 @@ ServerManagerIrc::Init(unsigned serverPort, unsigned websocketPort, bool ipv6, i
|
||||
|
||||
m_adminBot->Init(m_lobbyThread, tmpIrcAdminThread, myConfig.readConfigString("CacheDir"));
|
||||
m_lobbyBot->Init(m_lobbyThread, tmpIrcLobbyThread);
|
||||
ServerManager::Init(serverPort, websocketPort, ipv6, proto, logDir);
|
||||
ServerManager::Init(serverPort, websocketPort, ipv6, proto, logDir, webSocketResource, webSocketOrigin);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user