Work around XO-Server incomplete TLS
This commit is contained in:
parent
1893061c0d
commit
6373d667d9
@ -60,7 +60,10 @@ assign(Xo.prototype, {
|
|||||||
|
|
||||||
this.status = 'connecting';
|
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.
|
// When the socket opens, send any queued requests.
|
||||||
socket.on('open', function () {
|
socket.on('open', function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user