From fda3901691f80d6d79687785f53ae65c08e099d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Wed, 18 Dec 2024 22:35:51 +0500 Subject: [PATCH] Should work now. --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index b8698dc..5e39164 100644 --- a/index.ts +++ b/index.ts @@ -48,7 +48,7 @@ let srv = net.createServer(function(socket: net.Socket) { if (typeof p.data === 'undefined') { return; } else { - data = data.slice(s.search("\r")); + data = data.slice(s.search("\r") + 2); } } else { console.log("Address " + addr + " tried to use proxy protocol.");