Skip to content

Commit

Permalink
added username/password to socks5 proxy example
Browse files Browse the repository at this point in the history
it took me a couple minutes to figure out how to set it up so I thought of helping the next one
  • Loading branch information
gusnips authored Sep 25, 2020
1 parent 2640ea1 commit b138508
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/socks5-proxy.example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ const shttps = require('socks-proxy-agent'); // you should install SOCKS5 client
// @ts-ignore
hostname: '127.0.0.1', // proxy hostname
port: 8000, // proxy port
protocol: 'socks:' // supported: 'socks:' , 'socks4:' , 'socks4a:' , 'socks5:' , 'socks5h:'
protocol: 'socks:', // supported: 'socks:' , 'socks4:' , 'socks4a:' , 'socks5:' , 'socks5h:'
//username: 'myProxyUser', // proxy username, optional
//password: 'myProxyPassword123', // proxy password, optional
};
// Now we can perform authorization using our SOCKS5 proxy.
const auth = await ig.account.login(process.env.IG_USERNAME, process.env.IG_PASSWORD);
Expand Down

0 comments on commit b138508

Please sign in to comment.