Skip to content

Commit

Permalink
fix: decode username and password for socks tunnel
Browse files Browse the repository at this point in the history
  • Loading branch information
jirimoravcik committed Aug 21, 2024
1 parent c46eafd commit 3883332
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chain_socks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3883332

Please sign in to comment.