Commit ebe28588 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

fix spurious config write, closes https://github.com/opnsense/core/issues/1029

(cherry picked from commit 0e38a487)
parent bd9e1cda
......@@ -122,7 +122,7 @@ function plugins_interfaces()
$intf_config['internal_dynamic'] = true;
// traverse and diff interface properties with known configuration
foreach ($intf_data as $prop_name => $prop_value) {
if (empty($intf_config[$prop_name]) || $intf_config[$prop_name] != $prop_value) {
if ((empty($intf_config[$prop_name]) && !empty($prop_value)) || $intf_config[$prop_name] != $prop_value) {
$intf_config[$prop_name] = $prop_value;
if (!in_array($intf_ref, $changed_interfaces)) {
$changed_interfaces[] = $intf_ref;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment