From 8c6c3a268d99c692e627bb5c8a0d7b192bc97560 Mon Sep 17 00:00:00 2001 From: Palapeli <26661008+mkwcat@users.noreply.github.com> Date: Tue, 7 Apr 2026 23:17:44 -0400 Subject: [PATCH] NAS: Fix index check in proxyConsoleTLS --- nas/https.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nas/https.go b/nas/https.go index 5006760..1f41cc3 100644 --- a/nas/https.go +++ b/nas/https.go @@ -738,7 +738,7 @@ func proxyConsoleTLS(moduleName string, conn bufferedConn, nasAddr string, versi index += n total += n - for index < 5 { + for index >= 5 { if buf[0] < 0x15 || buf[0] > 0x17 { logging.Error(moduleName, "Invalid record type") return