From 38833321a5579a88af701153ef6b1af6683ea84f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Morav=C4=8D=C3=ADk?= Date: Wed, 21 Aug 2024 15:27:54 +0200 Subject: [PATCH] fix: decode username and password for socks tunnel --- src/chain_socks.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chain_socks.ts b/src/chain_socks.ts index 0bd0c436..2fe8a528 100644 --- a/src/chain_socks.ts +++ b/src/chain_socks.ts @@ -50,8 +50,8 @@ export const chainSocks = async ({ host: hostname, port: Number(port), type: socksProtocolToVersionNumber(handlerOpts.upstreamProxyUrlParsed.protocol), - userId: username, - password, + userId: decodeURIComponent(username), + password: decodeURIComponent(password), }; if (head && head.length > 0) {