mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Prevent users to misconfigure layer7 rules for now.(Ther are supported only on pass rules)
This commit is contained in:
parent
07b73e3df1
commit
3b184ca550
@ -339,6 +339,8 @@ if ($_POST) {
|
||||
if($_POST['l7container'] && $_POST['l7container'] != "none") {
|
||||
if(!($_POST['proto'] == "tcp" || $_POST['proto'] == "udp" || $_POST['proto'] == "tcp/udp"))
|
||||
$input_errors[] = "You can only select a layer7 container for tcp and/or udp protocols";
|
||||
if ($_POST['type'] <> "pass")
|
||||
$input_errors[] = "You can only select a layer7 container for Pass type rules.";
|
||||
}
|
||||
|
||||
if (!$input_errors) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user