Can now configure whether or not to accept an IRC server's SSL certificate if it's not got a cert chain to a well-known CA
"127.0.0.1"
];
-
+// Whether to verify IRC servers' SSL certificates against built-in well-known certificate authorities
+conf.reject_unauthorised_certificates = false;
// Whitelisted HTTP proxies
events.EventEmitter.call(this);
if (ssl) {
- this.socket = tls.connect(port, hostname, {}, connect_handler);
+ this.socket = tls.connect({host: hostname, port: port, rejectUnauthorized: global.config.reject_unauthorised_certificates}, connect_handler);
} else {
this.socket = net.createConnection(port, hostname);
this.socket.on('connect', function () {