Work around XO-Server incomplete TLS

This commit is contained in:
Julien Fontanet 2014-07-26 23:42:04 +02:00
parent 1893061c0d
commit 6373d667d9

View File

@ -60,7 +60,10 @@ assign(Xo.prototype, {
this.status = 'connecting';
var socket = this._socket = new WebSocket(this._url);
var socket = this._socket = new WebSocket(this._url, {
// Due to imperfect TLS implementation in XO-Server.
rejectUnauthorized: false,
});
// When the socket opens, send any queued requests.
socket.on('open', function () {