knxultimate
Advanced tools
Comparing version 4.1.0-beta.6 to 4.1.0-beta.7
@@ -30,14 +30,21 @@ "use strict"; | ||
for (const iface in interfaces) { | ||
for (const intf of interfaces[iface]) { | ||
for (let index = 0; index < interfaces[iface].length; index++) { | ||
let intf; | ||
try { | ||
logger.debug('parsing interface: %s (%j)', iface, intf); | ||
if (intf.family !== undefined && | ||
(intf.family.toString().includes('4') || | ||
intf.family === 4) && | ||
!intf.internal) { | ||
logger.debug('Found suitable interface: %s (%j)', iface, intf); | ||
candidateInterfaces[iface] = intf; | ||
intf = interfaces[iface][index]; | ||
if (intf === undefined) { | ||
logger.debug('intf is null: control point 1'); | ||
} | ||
else { | ||
logger.debug('Found NOT suitable interface: %s (%j)', iface, intf); | ||
logger.debug('parsing interface: %s (%j)', iface, intf); | ||
if (intf.family !== undefined && | ||
(intf.family.toString().includes('4') || | ||
intf.family === 4) && | ||
!intf.internal) { | ||
logger.debug('Found suitable interface: %s (%j)', iface, intf); | ||
candidateInterfaces[iface] = intf; | ||
} | ||
else { | ||
logger.debug('Found NOT suitable interface: %s (%j)', iface, intf); | ||
} | ||
} | ||
@@ -44,0 +51,0 @@ } |
# [4.1.0-beta.7](https://github.com/Supergiovane/KNXUltimate/compare/v4.1.0-beta.4...v4.1.0-beta.7) (2024-12-30) | ||
### Bug Fixes | ||
* ipAddressHelper uncatched error when running on raspberry pi, having interfaces without any ip. ([#44](https://github.com/Supergiovane/KNXUltimate/issues/44)) ([a9e46ee](https://github.com/Supergiovane/KNXUltimate/commit/a9e46ee53c08f0d355acf454cb3515f523aee37a)) | ||
# [4.1.0-beta.4](https://github.com/Supergiovane/KNXUltimate/compare/v4.1.0-beta.3...v4.1.0-beta.4) (2024-12-07) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "knxultimate", | ||
"description": "KNX IP protocol implementation for Node. This is the ENGINE of Node-Red KNX-Ultimate node.", | ||
"version": "4.1.0-beta.6", | ||
"version": "4.1.0-beta.7", | ||
"main": "./build/index.js", | ||
@@ -106,2 +106,2 @@ "engines": { | ||
} | ||
} | ||
} |
@@ -27,25 +27,30 @@ import { hasProp } from '../utils' | ||
} | ||
for (const iface in interfaces) { | ||
for (const intf of interfaces[iface]) { | ||
for (let index = 0; index < interfaces[iface].length; index++) { | ||
let intf | ||
try { | ||
logger.debug('parsing interface: %s (%j)', iface, intf) | ||
if ( | ||
intf.family !== undefined && | ||
(intf.family.toString().includes('4') || | ||
(intf as any).family === 4) && | ||
!intf.internal | ||
) { | ||
logger.debug( | ||
'Found suitable interface: %s (%j)', | ||
iface, | ||
intf, | ||
) | ||
candidateInterfaces[iface] = intf | ||
intf = interfaces[iface][index] | ||
if (intf === undefined) { | ||
logger.debug('intf is null: control point 1') | ||
} else { | ||
logger.debug( | ||
'Found NOT suitable interface: %s (%j)', | ||
iface, | ||
intf, | ||
) | ||
logger.debug('parsing interface: %s (%j)', iface, intf) | ||
if ( | ||
intf.family !== undefined && | ||
(intf.family.toString().includes('4') || | ||
intf.family === 4) && | ||
!intf.internal | ||
) { | ||
logger.debug( | ||
'Found suitable interface: %s (%j)', | ||
iface, | ||
intf, | ||
) | ||
candidateInterfaces[iface] = intf | ||
} else { | ||
logger.debug( | ||
'Found NOT suitable interface: %s (%j)', | ||
iface, | ||
intf, | ||
) | ||
} | ||
} | ||
@@ -61,3 +66,2 @@ } catch (error) { | ||
} | ||
return candidateInterfaces | ||
@@ -64,0 +68,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4518258
27758