mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-20 17:32:57 +00:00
hostapd: fix config change detection on boolean values
Check for null instead of truish value Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
3b44e0a4c1
commit
d65354488d
@ -150,7 +150,7 @@ function is_equal(val1, val2) {
|
||||
if (!is_equal(val1[key], val2[key]))
|
||||
return false;
|
||||
for (let key in val2)
|
||||
if (!val1[key])
|
||||
if (val1[key] == null)
|
||||
return false;
|
||||
return true;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user