MW 2007-05-19 14:38:13 +00:00
parent df6ec3ba6c
commit e0b724e9aa
1 changed files with 6 additions and 5 deletions

View File

@ -40,7 +40,7 @@ namespace OpenSim.Servers
{ {
SecuredTemplateChecksumRequestPacket checksum = (SecuredTemplateChecksumRequestPacket)packet; SecuredTemplateChecksumRequestPacket checksum = (SecuredTemplateChecksumRequestPacket)packet;
TemplateChecksumReplyPacket checkreply = new TemplateChecksumReplyPacket(); TemplateChecksumReplyPacket checkreply = new TemplateChecksumReplyPacket();
checkreply.DataBlock.Checksum = 180572585; checkreply.DataBlock.Checksum = 180572585;
checkreply.DataBlock.Flags = 0; checkreply.DataBlock.Flags = 0;
checkreply.DataBlock.MajorVersion = 1; checkreply.DataBlock.MajorVersion = 1;
@ -60,6 +60,7 @@ namespace OpenSim.Servers
} }
else if (packet.Type == PacketType.TemplateChecksumReply) else if (packet.Type == PacketType.TemplateChecksumReply)
{ {
//echo back the client checksum reply (Hegemon's method)
TemplateChecksumReplyPacket checksum = (TemplateChecksumReplyPacket)packet; TemplateChecksumReplyPacket checksum = (TemplateChecksumReplyPacket)packet;
TemplateChecksumReplyPacket checkreply2 = new TemplateChecksumReplyPacket(); TemplateChecksumReplyPacket checkreply2 = new TemplateChecksumReplyPacket();
checkreply2.DataBlock.Checksum = checksum.DataBlock.Checksum; checkreply2.DataBlock.Checksum = checksum.DataBlock.Checksum;