mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Only apply this port check for TCP and UDP.
This commit is contained in:
parent
e6a2acc15d
commit
a6f64d3076
@ -222,7 +222,7 @@ if ($_POST) {
|
||||
if ($_POST['dstendport'] && !is_portoralias($_POST['dstendport']))
|
||||
$input_errors[] = sprintf(gettext("%s is not a valid end destination port. It must be a port alias or integer between 1 and 65535."), $_POST['dstendport']);
|
||||
|
||||
if (!isset($_POST['nordr']) && !is_portoralias($_POST['localbeginport'])) {
|
||||
if ((strtoupper($_POST['proto']) == "TCP" || strtoupper($_POST['proto']) == "UDP" || strtoupper($_POST['proto']) == "TCP/UDP") && (!isset($_POST['nordr']) && !is_portoralias($_POST['localbeginport']))) {
|
||||
$input_errors[] = sprintf(gettext("A valid local port must be specified. It must be a port alias or integer between 1 and 65535."), $_POST['localbeginport']);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user