diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-08-18 20:38:49 -0400 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-08-26 13:49:58 -0300 |
commit | 60f0f448555f53494720ab898c22d409019e1a7b (patch) | |
tree | b39e280b1e5a67d2c616235218f7ae97c94840e8 | |
parent | 5fa00240e70b3c55bb9a9c39f8d12e306ae4db2d (diff) | |
download | pfsense-60f0f448555f53494720ab898c22d409019e1a7b.zip pfsense-60f0f448555f53494720ab898c22d409019e1a7b.tar.gz |
Corrected automatic mask settings
-rwxr-xr-x | usr/local/www/firewall_aliases_edit.php | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php index e1c7bd5..b91fa55 100755 --- a/usr/local/www/firewall_aliases_edit.php +++ b/usr/local/www/firewall_aliases_edit.php @@ -723,19 +723,11 @@ foreach ($types as $type => $typeName) $group = new Form_Group('IP or FQDN'); // Can't use a Form_IpAddress here because the user might enter an FQDN - $group->add(new Form_Input( + $group->add(new Form_IpAddress( 'address', 'IP or FQDN', - 'text', $address - )); - - $group->add( new Form_Select( - 'address_subnet', - null, - $address_subnet, - array_combine(range(128, 1, -1), range(128, 1, -1)) - ))->setHelp('Mask'); + ))->addMask(address_subnet, $pconfig['address_subnet']); $group->add(new Form_Input( 'detail', |