There is problem with client, every time you will send RECONNECT packet via KRelay it's breaking something in client and you cannot enter any bazaar any more. When you try you will get Incorrect Portal Key error.
Client restart is needed to fix it. Even if you switch off proxy and try via normal server. Still same problem.
Can someone explain da fuck deca made, and how to fix it ?
In case you will ask. Here is my function for RECCONECT. (its just standard shit, i have tested KRelay ONLY with this function and its gives you this Portal key error anyway)
Code:
public static bool ConnectTo(this Client client, ReconnectPacket reconnect)
{
if (reconnect == null)
return false;
string host = (string)reconnect.Host;
int port = (int)reconnect.Port;
byte[] key = (byte[])reconnect.Key;
client.State.ConTargetAddress = host;
client.State.ConTargetPort = port;
client.State.ConRealKey = key;
reconnect.Key = Encoding.UTF8.GetBytes((string)client.State.GUID);
reconnect.Host = "localhost";
reconnect.Port = 2050;
client.SendToClient(reconnect);
reconnect.Key = key;
reconnect.Host = host;
reconnect.Port = port;
return true;
}
And here is how i getting reconnect packet:
Can you take a look at it @xeniusw , @A_Random_Idiot
Thanks !