From ff94e53a58f56b1fc899cc1bd3509f3853737169 Mon Sep 17 00:00:00 2001 From: jusax23 Date: Wed, 8 Mar 2023 21:08:30 +0100 Subject: [PATCH] small changes --- src/api/acts/login.ts | 2 +- src/api/ws.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/acts/login.ts b/src/api/acts/login.ts index de51938..770bbb3 100644 --- a/src/api/acts/login.ts +++ b/src/api/acts/login.ts @@ -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"); diff --git a/src/api/ws.ts b/src/api/ws.ts index 96e508e..79caea7 100644 --- a/src/api/ws.ts +++ b/src/api/ws.ts @@ -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,