chill117 / proxy-verifier

NodeJS module to check proxies: if functional, anonymity level, tunneling, supported protocols.
MIT License
76 stars 16 forks source link

Auth not working. #37

Open Mxdi opened 2 years ago

Mxdi commented 2 years ago

var ProxyVerifier = require('proxy-verifier');

const auth = btoa('user:pass');

var proxy = { ipAddress: '208.202.250.44', port: 8312, protocol: 'http', auth: Basic ${auth} };

ProxyVerifier.testAll(proxy, function(error, result) {

if (error) {
console.log(error);
} else {
console.log(result);
}

});