mirror of
https://github.com/Akkadius/glass-isc-dhcp.git
synced 2025-07-29 00:25:16 +02:00
Merge pull request #40 from ASteffen117/patch-1
Update dhcp_lease_search.js
This commit is contained in:
commit
94ae5d498a
@ -29,14 +29,12 @@ router.post('/', function(req, res, next) {
|
|||||||
var matcher = new RegExp(search, "i");
|
var matcher = new RegExp(search, "i");
|
||||||
|
|
||||||
// console.log(dhcp_lease_data[key]);
|
// console.log(dhcp_lease_data[key]);
|
||||||
|
|
||||||
if(!matcher.test(JSON.stringify(dhcp_lease_data[key])))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if(
|
if(
|
||||||
!matcher.test(dhcp_lease_data[key].mac_oui_vendor)
|
!matcher.test(dhcp_lease_data[key].mac_oui_vendor)
|
||||||
&& !matcher.test(dhcp_lease_data[key].host)
|
&& !matcher.test(dhcp_lease_data[key].host)
|
||||||
&& !matcher.test(key)
|
&& !matcher.test(key)
|
||||||
|
&& !matcher.test(JSON.stringify(dhcp_lease_data[key]))
|
||||||
&& !matcher.test(dhcp_lease_data[key].mac)
|
&& !matcher.test(dhcp_lease_data[key].mac)
|
||||||
&& !matcher.test(JSON.stringify(dhcp_lease_data[key].options, null, 2))
|
&& !matcher.test(JSON.stringify(dhcp_lease_data[key].options, null, 2))
|
||||||
)
|
)
|
||||||
@ -69,4 +67,4 @@ router.post('/', function(req, res, next) {
|
|||||||
res.send(table_data);
|
res.send(table_data);
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = router;
|
module.exports = router;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user