diff options
author | Renato Botelho <renato@netgate.com> | 2016-12-27 10:47:44 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-12-27 10:47:44 -0200 |
commit | ac4e656aed7af011be7527df676002bccb6330f6 (patch) | |
tree | ca9f400db978fd79c4beecd56a6284abcf6bd576 /src/usr/local/www/firewall_nat_out_edit.php | |
parent | 58b5c9579aac52471e903a0914bfb0ea34731af9 (diff) | |
parent | 45541aae63596ea28aa18c84b65946bce6adbffd (diff) | |
download | pfsense-ac4e656aed7af011be7527df676002bccb6330f6.zip pfsense-ac4e656aed7af011be7527df676002bccb6330f6.tar.gz |
Merge pull request #3248 from phil-davis/ipaddressnopattern
Diffstat (limited to 'src/usr/local/www/firewall_nat_out_edit.php')
-rw-r--r-- | src/usr/local/www/firewall_nat_out_edit.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/usr/local/www/firewall_nat_out_edit.php b/src/usr/local/www/firewall_nat_out_edit.php index 3f47dc2..4c3bba9 100644 --- a/src/usr/local/www/firewall_nat_out_edit.php +++ b/src/usr/local/www/firewall_nat_out_edit.php @@ -496,8 +496,9 @@ $group->add(new Form_Select( $group->add(new Form_IpAddress( 'source', null, - $pconfig['source'] -))->addMask('source_subnet', $pconfig['source_subnet'])->setHelp('Source network for the outbound NAT mapping.')->setPattern('[a-zA-Z0-9_.:]+'); + $pconfig['source'], + 'ALIASV4V6' +))->addMask('source_subnet', $pconfig['source_subnet'])->setHelp('Source network for the outbound NAT mapping.'); $group->add(new Form_Input( 'sourceport', @@ -520,8 +521,9 @@ $group->add(new Form_Select( $group->add(new Form_IpAddress( 'destination', null, - $pconfig['destination'] == "any" ? "":$pconfig['destination'] -))->addMask('destination_subnet', $pconfig['destination_subnet'])->setHelp('Destination network for the outbound NAT mapping.')->setPattern('[a-zA-Z0-9_.:]+'); + $pconfig['destination'] == "any" ? "":$pconfig['destination'], + 'ALIASV4V6' +))->addMask('destination_subnet', $pconfig['destination_subnet'])->setHelp('Destination network for the outbound NAT mapping.'); $group->add(new Form_Input( 'dstport', |