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) {