This commit is contained in:
HikikoMarmy
2025-04-24 11:19:35 +01:00
parent 9cf6dea79f
commit 5f8becc229
2 changed files with 4 additions and 5 deletions

View File

@@ -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()

View File

@@ -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;