From 1d72a13f0a7bf3d2233ea9b4849425857d3920af Mon Sep 17 00:00:00 2001 From: Kristoffer Bylund Date: Thu, 19 Aug 2021 12:44:23 +0200 Subject: [PATCH] Changed trigger for mac address line to avoid conflicts with option82 data containing word 'ethernet' --- core/lease-parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lease-parser.js b/core/lease-parser.js index e6aee90..6dfed47 100644 --- a/core/lease-parser.js +++ b/core/lease-parser.js @@ -65,7 +65,7 @@ module.exports = { } dhcp_lease_data[ip_address].end = end_unix_time; } - if (/ethernet/i.test(lines[l])) { + if (/hardware ethernet/i.test(lines[l])) { if (typeof line_data_arg[2] !== "undefined") { dhcp_lease_data[ip_address].mac = line_data_arg[2].replace(/;/gi, '').trim();