Remove security from servertalk connections

This commit is contained in:
KimLS
2021-07-22 22:18:22 -07:00
parent fe7cb764b2
commit f8d057d027
7 changed files with 13 additions and 375 deletions
+1 -3
View File
@@ -10,12 +10,10 @@ EQ::Net::ServertalkServer::~ServertalkServer()
void EQ::Net::ServertalkServer::Listen(const ServertalkServerOptions& opts)
{
m_encrypted = opts.encrypted;
m_credentials = opts.credentials;
m_allow_downgrade = opts.allow_downgrade;
m_server = std::make_unique<EQ::Net::TCPServer>();
m_server->Listen(opts.port, opts.ipv6, [this](std::shared_ptr<EQ::Net::TCPConnection> connection) {
m_unident_connections.push_back(std::make_shared<ServertalkServerConnection>(connection, this, m_encrypted, m_allow_downgrade));
m_unident_connections.push_back(std::make_shared<ServertalkServerConnection>(connection, this));
});
}