small changes

This commit is contained in:
jusax23 2023-03-08 21:08:30 +01:00
parent 2671dda661
commit ff94e53a58
Signed by: jusax23
GPG key ID: 499E2AA870C1CD41
2 changed files with 2 additions and 2 deletions

View file

@ -144,7 +144,7 @@ export const remote1 = {
let server = await outbagURLfromTag(data.server);
try {
var cert = await getRemote(server);
var tagAcert = `${data.name}@${server.host}:${server.port}-${data.publicKey}`
var tagAcert = `${data.name}@${server.host}:${server.port}-${data.publicKey}`;
if (!(await verify(tagAcert, data.sign, cert))) {
client.suspect();
aws("error", "signature");

View file

@ -36,8 +36,8 @@ export class wsClient {
try {
this.activeRequests++;
let msgStr = msg.toString();
debug("WebSocket", "reveived:", msgStr);
let json = JSON.parse(msgStr) as { act: string, id: number, data: any };
debug("WebSocket", "reveived:", json);
if (!this.open) {
socket.send(JSON.stringify({
id: json.id,