summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_nat_npt_edit.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-06-21 14:29:08 -0400
committerStephen Beaver <sbeaver@netgate.com>2016-06-21 14:47:27 -0400
commit2c4af48f52765971a43368371953f24512c47d7e (patch)
treea23b5f1f5dde03f46a6326e4ca804b678fdfe7c3 /src/usr/local/www/firewall_nat_npt_edit.php
parent00a7688401c15015c3f43735b2b1536ebfec7e92 (diff)
downloadpfsense-2c4af48f52765971a43368371953f24512c47d7e.zip
pfsense-2c4af48f52765971a43368371953f24512c47d7e.tar.gz
Fixed #6498 by providing new address type argument to Form_IpAddress(). In this case it is specified as "V6".
(cherry picked from commit 3e4adb7139b4cddbb06a2aba7e0727d1762b35ee)
Diffstat (limited to 'src/usr/local/www/firewall_nat_npt_edit.php')
-rw-r--r--src/usr/local/www/firewall_nat_npt_edit.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/usr/local/www/firewall_nat_npt_edit.php b/src/usr/local/www/firewall_nat_npt_edit.php
index 907b55a..4ce89be 100644
--- a/src/usr/local/www/firewall_nat_npt_edit.php
+++ b/src/usr/local/www/firewall_nat_npt_edit.php
@@ -245,7 +245,8 @@ $section->addInput(new Form_Checkbox(
$section->addInput(new Form_IpAddress(
'src',
'Address',
- $pconfig['src']
+ $pconfig['src'],
+ 'V6'
))->addMask('srcmask', $pconfig['srcmask'])->setHelp('Internal (LAN) ULA IPv6 Prefix for the Network Prefix translation. ' .
'The prefix size specified for the internal IPv6 prefix will be applied to the external prefix.');
@@ -259,7 +260,8 @@ $section->addInput(new Form_Checkbox(
$section->addInput(new Form_IpAddress(
'dst',
'Address',
- $pconfig['dst']
+ $pconfig['dst'],
+ 'V6'
))->addMask('dstmask', $pconfig['dstmask'])->setHelp('Global Unicast routable IPv6 prefix');
$section->addInput(new Form_Input(
OpenPOWER on IntegriCloud