knxultimate
Advanced tools
Comparing version
@@ -10,2 +10,6 @@  | ||
<p> | ||
<b>Version 1.0.21</b> - Mai 2022<br/> | ||
- Fixed an issue in retrieving the local IP, in case of ETH interface not having the "family" property set.<br/> | ||
</p> | ||
<p> | ||
<b>Version 1.0.20</b> - Mai 2022<br/> | ||
@@ -12,0 +16,0 @@ - Fixed a compatibility issue introducted in Node 18.<br/> |
{ | ||
"name": "knxultimate", | ||
"description": "KNX IP protocol implementation for Node. This is the ENGINE of Node-Red KNX-Ultimate node.", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"engines": { | ||
@@ -6,0 +6,0 @@ "node": ">=14" |
@@ -15,3 +15,3 @@ // Helper for ipaddresses | ||
// In Node < 18, intf.family is a string "IPv4" or "IPv6", from node 18, is an integer, for example 4. | ||
if (intf.family.toString().includes("4") && !intf.internal) { | ||
if (intf.family !== undefined && intf.family.toString().includes("4") && !intf.internal) { | ||
knxLog.get().trace('ipAddressHelper.js: Found suitable interface: %s (%j)', iface, intf); | ||
@@ -18,0 +18,0 @@ candidateInterfaces[iface] = intf |
950783
0.02%