1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

repalce for-in with 'normal' for loop in mqtt and http

This commit is contained in:
Simon Hailes 2019-11-18 17:14:38 +00:00
parent b4e2061e85
commit 175a871ee0
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ module.exports = function(RED) {
// check if proxy is set in env
var noproxy;
if (noprox) {
for (var i in noprox) {
for (var i = 0; i < noprox.length; i += 1) {
if (this.brokerurl.indexOf(noprox[i].trim()) !== -1) { noproxy=true; }
}
}

View File

@ -292,7 +292,7 @@ module.exports = function(RED) {
var noproxy;
if (noprox) {
for (var i in noprox) {
for (var i = 0; i < noprox.length; i += 1) {
if (url.indexOf(noprox[i]) !== -1) { noproxy=true; }
}
}