Prevent users to misconfigure layer7 rules for now.(Ther are supported only on pass rules)

This commit is contained in:
Ermal Lui 2009-07-09 15:44:54 +00:00
parent 07b73e3df1
commit 3b184ca550

View File

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