diff options
author | jim-p <jimp@pfsense.org> | 2012-05-25 12:13:25 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-05-25 12:14:34 -0400 |
commit | 31f0ef215e7cc089f9d00f9432a298ffd494be05 (patch) | |
tree | ea7feccf850bd6883d22782587424568c5eba211 /usr/local/www/firewall_rules.php | |
parent | ac10faad42081ccfe48a37aa9814bc4684ffb701 (diff) | |
download | pfsense-31f0ef215e7cc089f9d00f9432a298ffd494be05.zip pfsense-31f0ef215e7cc089f9d00f9432a298ffd494be05.tar.gz |
Switch to a common function to determine anti-lockout ports, and fix a bug that was getting the ports wrong with custom https+redirect on.
Diffstat (limited to 'usr/local/www/firewall_rules.php')
-rwxr-xr-x | usr/local/www/firewall_rules.php | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php index 684b37c..c6af424 100755 --- a/usr/local/www/firewall_rules.php +++ b/usr/local/www/firewall_rules.php @@ -405,17 +405,7 @@ if($_REQUEST['undodrag']) { (((count($config['interfaces']) > 1) && ($if == 'lan')) || ((count($config['interfaces']) == 1) && ($if == 'wan')))): - $guiport = "80"; - if (isset($config['system']['webgui']['port']) && $config['system']['webgui']['port'] <> "") - $guiport = "{$config['system']['webgui']['port']}"; - if ($config['system']['webgui']['protocol'] == "https") - $guiport .= "<br/>443"; - - $sshport = ""; - if (isset($config['system']['enablesshd'])) { - $sshport = ($config['system']['ssh']['port']) ? $config['system']['ssh']['port'] : 22; - } - $sshport = "{$sshport}<br/>"; + $alports = implode('<br/>', filter_get_antilockout_ports(true)); ?> <tr valign="top" id="antilockout"> <td class="list"> </td> @@ -428,7 +418,7 @@ if($_REQUEST['undodrag']) { <td class="listr" style="background-color: #E0E0E0">*</td> <td class="listr" style="background-color: #E0E0E0">*</td> <td class="listr" style="background-color: #E0E0E0"><?=$iflist[$if];?> Address</td> - <td class="listr" style="background-color: #E0E0E0"><?= $sshport . $guiport ?></td> + <td class="listr" style="background-color: #E0E0E0"><?= $alports ?></td> <td class="listr" style="background-color: #E0E0E0">*</td> <td class="listr" style="background-color: #E0E0E0">*</td> <td class="listr" style="background-color: #E0E0E0"></td> |