From a2b31e26773f15e7c0a60d2e9274820ad9f99c24 Mon Sep 17 00:00:00 2001 From: Reed Rosenbluth Date: Tue, 21 Jul 2015 16:40:46 -0700 Subject: [PATCH] check if proxy option is undefined, not if it exists --- src/core/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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:';