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,