From dc1d3427996bc52a3e0e643d4b4bf961d22d1f4a Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Mon, 16 Feb 2026 19:04:04 -0600 Subject: [PATCH] fix(scanner): if host or port not sent over stop the connection right away --- lstV2/server/globalUtils/scannerConnect.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lstV2/server/globalUtils/scannerConnect.ts b/lstV2/server/globalUtils/scannerConnect.ts index 305fc36..0afea85 100644 --- a/lstV2/server/globalUtils/scannerConnect.ts +++ b/lstV2/server/globalUtils/scannerConnect.ts @@ -37,6 +37,10 @@ export class ScannerClient { } private initialize() { + if (!this.host || !this.port) { + console.log("Host or port is missing"); + return; + } this.socket.connect(this.port, this.host, () => { console.info("Connected to scanner"); this.connected = true;