fix: correctly send new public key on regen
This commit is contained in:
parent
0f50c8b589
commit
8109c6ca80
|
@ -113,6 +113,7 @@ namespace XIVChatPlugin {
|
|||
|
||||
if (WithWhiteText(() => ImGui.Button("Regenerate"))) {
|
||||
this.Plugin.Server.RegenerateKeyPair();
|
||||
this.Plugin.Relay?.ResendPublicKey();
|
||||
}
|
||||
|
||||
ImGui.SameLine();
|
||||
|
|
|
@ -74,9 +74,13 @@ namespace XIVChatPlugin {
|
|||
return;
|
||||
}
|
||||
|
||||
var pk = keys.PublicKey.ToHexString();
|
||||
var msg = new RelayRegister {
|
||||
AuthToken = "",
|
||||
PublicKey = keys.PublicKey,
|
||||
};
|
||||
var bytes = MessagePackSerializer.Serialize((IToRelay) msg);
|
||||
|
||||
this.Connection.Send(pk);
|
||||
this.Connection.Send(bytes);
|
||||
}
|
||||
|
||||
internal void DisconnectClient(IEnumerable<byte> pk) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user