mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
Firewall: Rules - fix group priority handling introduced in 8e197ff73e , closes https://github.com/opnsense/core/issues/6772
This commit is contained in:
parent
318be6ab60
commit
1dbcf112e6
@ -402,21 +402,14 @@ abstract class Rule
|
||||
|
||||
public function ruleOrigin()
|
||||
{
|
||||
|
||||
switch ($this->rule['#priority']) {
|
||||
case 200000:
|
||||
$origin = 'floating';
|
||||
break;
|
||||
case 300000:
|
||||
$origin = 'group';
|
||||
break;
|
||||
case 400000:
|
||||
$origin = 'interface';
|
||||
break;
|
||||
default:
|
||||
$origin = 'internal';
|
||||
if ($this->rule['#priority'] >= 200000 && $this->rule['#priority'] < 300000) {
|
||||
return 'floating';
|
||||
} elseif ($this->rule['#priority'] >= 300000 && $this->rule['#priority'] < 400000) {
|
||||
return 'group';
|
||||
} elseif ($this->rule['#priority'] >= 400000 && $this->rule['#priority'] < 500000) {
|
||||
return 'interface';
|
||||
}
|
||||
return $origin;
|
||||
return 'internal';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user