summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-03-27 00:28:07 +0000
committerErmal <eri@pfsense.org>2010-03-27 00:28:07 +0000
commit6a68854775c9cabe7839115ece7aad9cfcedb60a (patch)
treea31c4e94a84002c5ff5896f1df4ed5542d5d0b10 /usr
parent65a82e32a8750980361f59ddf64b234599b5ab2b (diff)
downloadpfsense-6a68854775c9cabe7839115ece7aad9cfcedb60a.zip
pfsense-6a68854775c9cabe7839115ece7aad9cfcedb60a.tar.gz
Make lan/wan behave as all other interfaces.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/interfaces.php15
1 files changed, 2 insertions, 13 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 11fab26..58304d6 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -161,10 +161,7 @@ if($if == "wan" && !$wancfg['descr']) {
}
$pconfig['descr'] = remove_bad_chars($wancfg['descr']);
-if ($if == "wan" || $if == "lan")
- $pconfig['enable'] = true;
-else
- $pconfig['enable'] = isset($wancfg['enable']);
+$pconfig['enable'] = isset($wancfg['enable']);
if (is_array($config['aliases']['alias'])) {
foreach($config['aliases']['alias'] as $alias) {
@@ -491,11 +488,7 @@ if ($_POST) {
unset($wancfg['remote']);
$wancfg['descr'] = remove_bad_chars($_POST['descr']);
- if ($if == "wan" || $if == "lan") {
- $wancfg['enable'] = true;
- } else {
- $wancfg['enable'] = $_POST['enable'] == "yes" ? true : false;
- }
+ $wancfg['enable'] = $_POST['enable'] == "yes" ? true : false;
/* for dynamic interfaces we tack a gateway item onto the array to prevent system
* log messages from appearing. They can also manually add these items */
@@ -915,7 +908,6 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe"
<tr>
<td colspan="2" valign="top" class="listtopic">General configuration</td>
</tr>
- <?php if ($if != "wan" && $if != "lan"): ?>
<tr>
<td width="22%" valign="top" class="vncell">Enable</td>
<td width="78%" class="vtable">
@@ -923,9 +915,6 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe"
<strong>Enable Interface</strong>
</td>
</tr>
- <?php else: ?>
- <input name="enable" type="hidden" value="yes">
- <?php endif; ?>
</table>
<div style="display:none;" name="allcfg" id="allcfg">
<table width="100%" border="0" cellpadding="6" cellspacing="0">
OpenPOWER on IntegriCloud