diff options
-rwxr-xr-x | usr/local/www/firewall_nat_out_edit.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/firewall_nat_out_edit.php b/usr/local/www/firewall_nat_out_edit.php index 0d4c991..bdf0242 100755 --- a/usr/local/www/firewall_nat_out_edit.php +++ b/usr/local/www/firewall_nat_out_edit.php @@ -105,6 +105,11 @@ if ($_POST) { $input_errors[] = "A valid destination bit count must be specified."; } } + if ($_POST['destination_type'] != "any") { + if ($_POST['destination_not']) + $input_errors[] = "Negating destination address of \"any\" is invalid."; + } + if ($_POST['target'] && !is_ipaddr($_POST['target'])) { $input_errors[] = "A valid target IP address must be specified."; } |