Dont process XML policy request as a hi1 packet.

This commit is contained in:
Li 2022-11-20 12:49:07 +13:00
parent f716fedec5
commit b665061308

View file

@ -20,10 +20,13 @@ namespace HISP.Server.Network
if (buffer[i] == XMLSOCKET_PACKET_TERMINATOR) // Read until \0...
{
byte[] packet = currentPacket.ToArray();
if (Helper.ByteArrayStartsWith(packet, XMLSOCKET_POLICY_FILE))
this.Send(CrossDomainPolicy.GetPolicyFile());
else
onReceiveCallback(packet);
onReceiveCallback(packet);
currentPacket.Clear();
continue;
}