diff --git a/HorseIsleServer/LibHISP/Server/Network/XmlSocket.cs b/HorseIsleServer/LibHISP/Server/Network/XmlSocket.cs index fa02903..bb44959 100644 --- a/HorseIsleServer/LibHISP/Server/Network/XmlSocket.cs +++ b/HorseIsleServer/LibHISP/Server/Network/XmlSocket.cs @@ -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; }