mirror of
https://github.com/HikikoMarmy/Champions-Reborn-Server.git
synced 2026-04-05 08:59:54 -03:00
Reverse the IP ordering.
Fixes external connections
This commit is contained in:
@@ -17,9 +17,9 @@ void NotifyClientRequestConnect_RTA::Serialize( ByteBuffer &out ) const
|
||||
out.write_u16( m_packetId );
|
||||
out.write_u32( 0 );
|
||||
|
||||
out.write_utf8( this->m_remoteAddr );
|
||||
out.write_u32( this->m_remotePort );
|
||||
|
||||
out.write_utf8( this->m_localAddr );
|
||||
out.write_u32( this->m_localPort );
|
||||
|
||||
out.write_utf8( this->m_remoteAddr );
|
||||
out.write_u32( this->m_remotePort );
|
||||
}
|
||||
@@ -67,18 +67,6 @@ void ResultMatchGame_RTA::Serialize( ByteBuffer &out ) const
|
||||
out.write_u32( 0 ); // Size
|
||||
}
|
||||
|
||||
out.write_u32(publicGameCount);
|
||||
{
|
||||
for (const auto& game : publicGameList)
|
||||
out.write_utf16(Util::UTF8ToWide(game->m_hostExternalAddr));
|
||||
}
|
||||
|
||||
out.write_u32(publicGameCount);
|
||||
{
|
||||
for (const auto& game : publicGameList)
|
||||
out.write_u32(game->m_hostNatPort);
|
||||
}
|
||||
|
||||
out.write_u32( publicGameCount );
|
||||
{
|
||||
for( const auto &game : publicGameList )
|
||||
@@ -90,4 +78,16 @@ void ResultMatchGame_RTA::Serialize( ByteBuffer &out ) const
|
||||
for( const auto &game : publicGameList )
|
||||
out.write_u32( game->m_hostLocalPort );
|
||||
}
|
||||
|
||||
out.write_u32( publicGameCount );
|
||||
{
|
||||
for( const auto &game : publicGameList )
|
||||
out.write_utf16( Util::UTF8ToWide( game->m_hostExternalAddr ) );
|
||||
}
|
||||
|
||||
out.write_u32( publicGameCount );
|
||||
{
|
||||
for( const auto &game : publicGameList )
|
||||
out.write_u32( game->m_hostNatPort );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user