diff --git a/src/core/server.js b/src/core/server.js index a3c4cc99..364cc82a 100644 --- a/src/core/server.js +++ b/src/core/server.js @@ -437,7 +437,7 @@ Server.prototype.connect = function() { log.info(this.getServerID(), 'connect'); } - if (this._remote.hasOwnProperty('proxy')) { + if (this._remote.proxy !== undefined) { const parsed = url.parse(this._opts.url); const opts = url.parse(this._remote.proxy); opts.secureEndpoint = parsed.protocol === 'wss:';