allow port ranges for natport. Ticket #5156

This commit is contained in:
Chris Buechler 2015-09-17 01:17:58 -05:00
parent 798b88f06b
commit e18ffac2a4

View File

@ -213,7 +213,7 @@ if ($_POST) {
$input_errors[] = gettext("You must supply either a valid port or port alias for the destination port entry.");
}
if ($protocol_uses_ports && $_POST['natport'] <> "" && !is_port($_POST['natport']) && !isset($_POST['nonat'])) {
if ($protocol_uses_ports && $_POST['natport'] <> "" && !(is_portoralias($_POST['natport']) || is_portrange($_POST['natport'])) && !isset($_POST['nonat'])) {
$input_errors[] = gettext("You must supply a valid port for the NAT port entry.");
}