summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/firewall_nat_1to1_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/firewall_nat_1to1_edit.php b/src/usr/local/www/firewall_nat_1to1_edit.php
index e763aa7..b127706 100644
--- a/src/usr/local/www/firewall_nat_1to1_edit.php
+++ b/src/usr/local/www/firewall_nat_1to1_edit.php
@@ -207,7 +207,7 @@ if ($_POST) {
if (!is_specialnet($_POST['dsttype'])) {
if ($_POST['dst']) {
$dstipaddrtype = validateipaddr($_POST['dst'], IPV4V6, "Destination address", $input_errors, true);
- if ($dstipaddrtype == 1) {
+ if ($dstipaddrtype == ALIAS) {
// It is an alias.
// pf does not report "error loading rules" if the address family of items in the alias does not match the external/internal address family.
// So that is up to the user to make sensible, we do not try and verify it here.
OpenPOWER on IntegriCloud