Private
Public Access
1
0

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:
2025-12-01 14:43:48 -05:00
parent 878d6c7769
commit ab626ed9a6
2 changed files with 68 additions and 32 deletions

View File

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