diff options
author | Chris Buechler <cmb@pfsense.org> | 2010-04-03 16:38:39 -0400 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2010-04-03 16:38:39 -0400 |
commit | 0ad76ac86085aa8ffb832e76535e9c30fd0a7324 (patch) | |
tree | 48e6ec067e5f4173232d1b01eaa3a5d35d527f19 /usr | |
parent | af5d9af284c69dc5e74d20d420bed304364b0bea (diff) | |
download | pfsense-0ad76ac86085aa8ffb832e76535e9c30fd0a7324.zip pfsense-0ad76ac86085aa8ffb832e76535e9c30fd0a7324.tar.gz |
fix editing of PARP ranges reverting to single entries, and duplicate "selected" in subnet_bits
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_virtual_ip_edit.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php index fb4e35f..4b99f3f 100755 --- a/usr/local/www/firewall_virtual_ip_edit.php +++ b/usr/local/www/firewall_virtual_ip_edit.php @@ -385,9 +385,9 @@ function typesel_change() { <tr> <td>Type: </td> <td><select name="type" class="formselect" onChange="typesel_change()"> - <option value="single" <?php if ((!$pconfig['range'] && $pconfig['subnet_bits'] == 32) || (!isset($pconfig['ipaddr']))) echo "selected"; ?>> + <option value="single" <?php if ((!$pconfig['range'] && $pconfig['subnet_bits'] == 32) || (!isset($pconfig['subnet']))) echo "selected"; ?>> Single address</option> - <option value="network" <?php if (!$pconfig['range'] && $pconfig['subnet_bits'] != 32 && isset($pconfig['ipaddr'])) echo "selected"; ?>> + <option value="network" <?php if (!$pconfig['range'] && $pconfig['subnet_bits'] != 32 && isset($pconfig['subnet'])) echo "selected"; ?>> Network</option> <!-- XXX: Billm, don't let anyone choose this until NAT configuration screens are ready for it <option value="range" <?php if ($pconfig['range']) echo "selected"; ?>> Range</option> --> @@ -398,7 +398,7 @@ function typesel_change() { <td><input name="subnet" type="text" class="formfld unknown" id="subnet" size="20" value="<?=htmlspecialchars($pconfig['subnet']);?>"> /<select name="subnet_bits" class="formselect" id="select"> <?php for ($i = 32; $i >= 1; $i--): ?> - <option value="<?=$i;?>" <?php if (($i == $pconfig['subnet_bits']) || (!isset($pconfig['ipaddr']) && $i == 32)) echo "selected"; ?>> + <option value="<?=$i;?>" <?php if (($i == $pconfig['subnet_bits']) || (!isset($pconfig['subnet']) && $i == 32)) echo "selected"; ?>> <?=$i;?> </option> <?php endfor; ?> @@ -471,7 +471,7 @@ function typesel_change() { <span class="red"> <strong>Note:<br></strong> </span> - ProxyARP type IP addresses *DO NOT* work with addon packages such as squid. Use a CARP or IP Alias type address for these cases. + ProxyARP type IP addresses *DO NOT* work with add on packages such as Squid. Use a CARP or IP Alias type address for these cases. <p> For more information on CARP and the above values, visit the OpenBSD <a href='http://www.openbsd.org/faq/pf/carp.html'>CARP FAQ</A>. </span> </p> |