Closed alex7kom closed 8 years ago
However, it works if you manually specify the hostname
:
var request = require('request');
var Agent = require('socks5-https-client/lib/Agent');
request({
url: 'https://sni.velox.ch/',
strictSSL: true,
agentClass: Agent,
agentOptions: {
socksHost: 'localhost',
socksPort: 9050,
hostname: 'sni.velox.ch'
}
}, function(err, res) {
console.log(err || res.body);
console.log(res);
});
Sorry it's taken me over a year to comment on this, but the latest version of this client (published a few minutes ago) uses an Agent that inherits from https.Agent instead of http.Agent, so SNI should be handled correctly.
Yes, it works for me. Thank you!
Resolved in one and a half years! Thank you for checking 👍
When using with Request a server returns wrong certificate. Pure Request and pure
socks5-https-client
work just fine, but when used together the result is:Test case: