fix: set default log level to 'nolog' in Proxmox Firewall component and update log level options in the UI for improved clarity and consistency
This commit is contained in:
@@ -37,7 +37,7 @@ class Firewall extends Component
|
||||
public bool $ruleEnable = true;
|
||||
public string $ruleMacro = '';
|
||||
public string $ruleIface = '';
|
||||
public string $ruleLog = '';
|
||||
public string $ruleLog = 'nolog';
|
||||
|
||||
// Alias management
|
||||
public string $aliasName = '';
|
||||
@@ -243,7 +243,7 @@ class Firewall extends Component
|
||||
$this->ruleEnable = !isset($rule['enable']) || $rule['enable'] == 1;
|
||||
$this->ruleMacro = $rule['macro'] ?? '';
|
||||
$this->ruleIface = $rule['iface'] ?? '';
|
||||
$this->ruleLog = $rule['log'] ?? '';
|
||||
$this->ruleLog = $rule['log'] ?? 'nolog';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -259,7 +259,7 @@ class Firewall extends Component
|
||||
$this->ruleEnable = true;
|
||||
$this->ruleMacro = '';
|
||||
$this->ruleIface = '';
|
||||
$this->ruleLog = '';
|
||||
$this->ruleLog = 'nolog';
|
||||
}
|
||||
|
||||
public function saveRule(): void
|
||||
|
||||
Reference in New Issue
Block a user