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.");