From 7dd27c5437674f019716d0118b6554badacf21d3 Mon Sep 17 00:00:00 2001 From: PondWader <66561610+PondWader@users.noreply.github.com> Date: Thu, 16 May 2024 10:43:19 +0100 Subject: [PATCH] Set TCP_NODELAY on sockets to target --- src/connectionHandler.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/connectionHandler.ts b/src/connectionHandler.ts index 8ea0589..a730a1b 100644 --- a/src/connectionHandler.ts +++ b/src/connectionHandler.ts @@ -12,6 +12,7 @@ export default function (connection: InitialisedSocks5Connection, sendStatus: (s host: connection.destAddress, port: connection.destPort }); + stream.setNoDelay(); let streamOpened = false; stream.on('error', (err: Error & { code: string }) => {