mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-04 13:05:49 +00:00
check if proxy option is undefined, not if it exists
This commit is contained in:
@@ -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:';
|
||||
|
||||
Reference in New Issue
Block a user