Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
Fix proxy-authentication (#22)
Browse files Browse the repository at this point in the history
Fixes #21.
  • Loading branch information
Дмитрий Гуденков authored and TooTallNate committed Feb 5, 2019
1 parent 5867dd0 commit d8152ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ SocksProxyAgent.prototype.callback = function connect(req, opts, fn) {
};

if (proxy.authentication) {
options.proxy.authentication = proxy.authentication;
options.proxy.userid = proxy.userid;
options.proxy.userId = proxy.userid;
options.proxy.password = proxy.authentication.password;
}

if (proxy.lookup) {
Expand Down

0 comments on commit d8152ef

Please sign in to comment.