summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_nat_edit.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2016-02-26 11:42:32 -0500
committerjim-p <jimp@pfsense.org>2016-02-26 11:42:32 -0500
commit7d0929e906696749c9b095cf1c6f6e5b14940bdb (patch)
treefb16cbf84084fb95bd1c8a210cefc3c1967a764c /src/usr/local/www/firewall_nat_edit.php
parent954202d03343e3bfbba9ada401ff7c54dad571f2 (diff)
downloadpfsense-7d0929e906696749c9b095cf1c6f6e5b14940bdb.zip
pfsense-7d0929e906696749c9b095cf1c6f6e5b14940bdb.tar.gz
Don't unnecessarily exclude IPv6 addresses here. See ticket #5931
Diffstat (limited to 'src/usr/local/www/firewall_nat_edit.php')
-rw-r--r--src/usr/local/www/firewall_nat_edit.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/firewall_nat_edit.php b/src/usr/local/www/firewall_nat_edit.php
index fc29648..2955418 100644
--- a/src/usr/local/www/firewall_nat_edit.php
+++ b/src/usr/local/www/firewall_nat_edit.php
@@ -755,7 +755,7 @@ $group->add(new Form_IpAddress(
'src',
null,
is_specialnet($pconfig['src']) ? '': $pconfig['src']
-))->setPattern('[.a-zA-Z0-9_]+')->addMask('srcmask', $pconfig['srcmask'])->setHelp('Address/mask');
+))->setPattern('[.a-zA-Z0-9_:]+')->addMask('srcmask', $pconfig['srcmask'])->setHelp('Address/mask');
$section->add($group);
@@ -822,7 +822,7 @@ $group->add(new Form_IpAddress(
'dst',
null,
is_specialnet($pconfig['dst']) ? '': $pconfig['dst']
-))->setPattern('[.a-zA-Z0-9_]+')->addMask('dstmask', $pconfig['dstmask'], 31)->setHelp('Address/mask');
+))->setPattern('[.a-zA-Z0-9_:]+')->addMask('dstmask', $pconfig['dstmask'], 31)->setHelp('Address/mask');
$section->add($group);
@@ -866,7 +866,7 @@ $section->addInput(new Form_IpAddress(
'localip',
'Redirect target IP',
$pconfig['localip']
-))->setPattern('[.a-zA-Z0-9_]+')->setHelp('Enter the internal IP address of the server on which you want to map the ports.' . '<br />' .
+))->setPattern('[.a-zA-Z0-9_:]+')->setHelp('Enter the internal IP address of the server on which you want to map the ports.' . '<br />' .
'e.g.: 192.168.1.12');
$group = new Form_Group('Redirect target port');
OpenPOWER on IntegriCloud