mirror of
https://github.com/HikikoMarmy/Champions-Reborn-Server.git
synced 2026-04-05 08:59:54 -03:00
Cleanup.
This commit is contained in:
@@ -36,7 +36,7 @@ std::string RealmCrypt::encryptString( std::string &input )
|
||||
|
||||
rijndael aes;
|
||||
|
||||
auto result = aes.EncryptECB(
|
||||
auto result = aes.EncryptECB(
|
||||
reinterpret_cast< const uint8_t * >( input.c_str() ),
|
||||
static_cast< uint32_t >( input.size() ),
|
||||
default_sym_key.data()
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
class DiscoveryServer
|
||||
{
|
||||
class DiscoveryServer {
|
||||
private:
|
||||
static inline std::unique_ptr< DiscoveryServer > m_instance;
|
||||
static inline std::mutex m_mutex;
|
||||
|
||||
public:
|
||||
static DiscoveryServer& Get()
|
||||
static DiscoveryServer &Get()
|
||||
{
|
||||
std::lock_guard< std::mutex > lock( m_mutex );
|
||||
if( m_instance == nullptr )
|
||||
@@ -32,7 +31,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
void ProcessPacket(sockaddr_in* clientAddr, sptr_byte_stream stream);
|
||||
void ProcessPacket( sockaddr_in *clientAddr, sptr_byte_stream stream );
|
||||
|
||||
std::atomic< bool > m_running;
|
||||
std::thread m_thread;
|
||||
|
||||
Reference in New Issue
Block a user