summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-12-20 22:48:22 +0545
committerGitHub <noreply@github.com>2016-12-20 22:48:22 +0545
commit13cf61ba2c7ab5c9029ba40606e27e71075ef8ac (patch)
tree987df10c599390aea4b66330642d71740eb16356 /src/usr
parentbcdf453402a2f742b2656cd59602250f062896ee (diff)
downloadpfsense-13cf61ba2c7ab5c9029ba40606e27e71075ef8ac.zip
pfsense-13cf61ba2c7ab5c9029ba40606e27e71075ef8ac.tar.gz
NAT 1:1 use constant name when checking validateipaddr return value
Diffstat (limited to 'src/usr')
-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