mirror of
https://github.com/opnsense/core.git
synced 2026-10-12 02:20:36 +00:00
interfaces: fix mismatch on change with disablevlanhwfilter
Caused all interfaces to be queued for apply.
This commit is contained in:
@@ -166,6 +166,8 @@ class NetworkInterface extends BaseModel
|
||||
foreach ($todo['pending'] as $prop => $value) {
|
||||
if ($prop === 'dhcp6_norequest_dns' && !isset($intf->$prop)) {
|
||||
$curval = '0'; /* actually stored as dhcp6_request_dns in our model */
|
||||
} elseif ($prop === 'disablevlanhwfilter' && !isset($intf->$prop)) {
|
||||
$curval = '0'; /* legacy omits writing '0' due to empty() */
|
||||
} elseif (!isset($intf->$prop)) {
|
||||
$curval = ($this->interface->$key->$prop instanceof BooleanField) ? '0' : '';
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user