Browse Source

hostapd: fix config change detection on boolean values

Check for null instead of truish value

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau 2 years ago
parent
commit
d65354488d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      package/network/services/hostapd/files/common.uc

+ 1 - 1
package/network/services/hostapd/files/common.uc

@@ -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 {