Support for client 6.0.5.0.
The satisfies my yearly RunUO commit for 2007. :-P
This commit is contained in:
parent
a4c562c06d
commit
0b19ae183e
2 changed files with 29 additions and 2 deletions
|
|
@ -152,7 +152,13 @@ namespace Server.Network
|
|||
|
||||
if ( !ns.Seeded )
|
||||
{
|
||||
if ( buffer.Length >= 4 )
|
||||
if ( buffer.GetPacketID() == 0xEF )
|
||||
{
|
||||
// new packet in client 6.0.5.0 replaces the traditional seed method with a seed packet
|
||||
// 0xEF = 239 = multicast IP, so this should never appear in a normal seed. So this is backwards compatible with older clients.
|
||||
ns.Seeded = true;
|
||||
}
|
||||
else if ( buffer.Length >= 4 )
|
||||
{
|
||||
buffer.Dequeue( m_Peek, 0, 4 );
|
||||
|
||||
|
|
@ -180,7 +186,7 @@ namespace Server.Network
|
|||
{
|
||||
int packetID = buffer.GetPacketID();
|
||||
|
||||
if ( !ns.SentFirstPacket && packetID != 0xF0 && packetID != 0xF1 && packetID != 0xCF && packetID != 0x80 && packetID != 0x91 && packetID != 0xA4 )
|
||||
if ( !ns.SentFirstPacket && packetID != 0xF0 && packetID != 0xF1 && packetID != 0xCF && packetID != 0x80 && packetID != 0x91 && packetID != 0xA4 && packetID != 0xEF )
|
||||
{
|
||||
Console.WriteLine( "Client: {0}: Encrypted client detected, disconnecting", ns );
|
||||
ns.Dispose();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue