mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
parent
a55554193b
commit
9c71d52d69
@ -612,7 +612,7 @@ module.exports = function(RED) {
|
|||||||
node.brokerurl = node.url;
|
node.brokerurl = node.url;
|
||||||
} else {
|
} else {
|
||||||
// if the broker is ws:// or wss:// or tcp://
|
// if the broker is ws:// or wss:// or tcp://
|
||||||
if (node.broker.indexOf("://") > -1) {
|
if ((typeof node.broker === 'string') && node.broker.indexOf("://") > -1) {
|
||||||
node.brokerurl = node.broker;
|
node.brokerurl = node.broker;
|
||||||
// Only for ws or wss, check if proxy env var for additional configuration
|
// Only for ws or wss, check if proxy env var for additional configuration
|
||||||
if (node.brokerurl.indexOf("wss://") > -1 || node.brokerurl.indexOf("ws://") > -1) {
|
if (node.brokerurl.indexOf("wss://") > -1 || node.brokerurl.indexOf("ws://") > -1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user