Skip to content

Commit d1f1906

Browse files
committed
🔒️ fix: socketclient broken api key issue #2497
1 parent c57b4e1 commit d1f1906

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ export const setupSocketServer : (cliConfig, client : Client) => Promise<void> =
298298
if (cliConfig.key) {
299299
io.use((socket, next) => {
300300
if (socket.handshake.auth["apiKey"] == cliConfig.key) next()
301-
next(new Error("Authentication error"));
301+
else next(new Error("Authentication error"));
302302
});
303303
}
304304
io.on("connection", (socket) => {

0 commit comments

Comments
 (0)