This commit is contained in:
Ad Schellevis 2018-12-01 14:41:18 +01:00
parent 1912290b5a
commit b89a9e5b66

View File

@ -178,7 +178,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
if ($pconfig['source'] == "any" && !empty($pconfig['source_not'])) {
$input_errors[] = gettext("Negating source address of \"any\" is invalid.");
}
if (!is_specialnet($pconfig['destination']) && is_ipaddroralias($pconfig['destination'])) {
if (!is_specialnet($pconfig['destination']) && !is_ipaddroralias($pconfig['destination'])) {
$input_errors[] = gettext("A valid destination must be specified.");
}
if (!empty($pconfig['destination_subnet']) && !is_numericint($pconfig['destination_subnet'])) {