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_u16( m_packetId );
|
||||||
out.write_u32( 0 );
|
out.write_u32( 0 );
|
||||||
|
|
||||||
out.write_utf8( this->m_remoteAddr );
|
|
||||||
out.write_u32( this->m_remotePort );
|
|
||||||
|
|
||||||
out.write_utf8( this->m_localAddr );
|
out.write_utf8( this->m_localAddr );
|
||||||
out.write_u32( this->m_localPort );
|
out.write_u32( this->m_localPort );
|
||||||
|
|
||||||
|
out.write_utf8( this->m_remoteAddr );
|
||||||
|
out.write_u32( this->m_remotePort );
|
||||||
}
|
}
|
||||||
@@ -67,27 +67,27 @@ void ResultMatchGame_RTA::Serialize( ByteBuffer &out ) const
|
|||||||
out.write_u32( 0 ); // Size
|
out.write_u32( 0 ); // Size
|
||||||
}
|
}
|
||||||
|
|
||||||
out.write_u32(publicGameCount);
|
out.write_u32( publicGameCount );
|
||||||
{
|
{
|
||||||
for (const auto& game : publicGameList)
|
for( const auto &game : publicGameList )
|
||||||
out.write_utf16(Util::UTF8ToWide(game->m_hostExternalAddr));
|
out.write_utf16( Util::UTF8ToWide( game->m_hostLocalAddr ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
out.write_u32(publicGameCount);
|
out.write_u32( publicGameCount );
|
||||||
{
|
{
|
||||||
for (const auto& game : publicGameList)
|
for( const auto &game : publicGameList )
|
||||||
out.write_u32(game->m_hostNatPort);
|
out.write_u32( game->m_hostLocalPort );
|
||||||
}
|
}
|
||||||
|
|
||||||
out.write_u32(publicGameCount);
|
out.write_u32( publicGameCount );
|
||||||
{
|
{
|
||||||
for (const auto& game : publicGameList)
|
for( const auto &game : publicGameList )
|
||||||
out.write_utf16(Util::UTF8ToWide(game->m_hostLocalAddr));
|
out.write_utf16( Util::UTF8ToWide( game->m_hostExternalAddr ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
out.write_u32(publicGameCount);
|
out.write_u32( publicGameCount );
|
||||||
{
|
{
|
||||||
for (const auto& game : publicGameList)
|
for( const auto &game : publicGameList )
|
||||||
out.write_u32(game->m_hostLocalPort);
|
out.write_u32( game->m_hostNatPort );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user