summaryrefslogtreecommitdiffstats
path: root/etc/rc.initial.setlanip
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-02-09 01:10:28 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-02-09 01:10:28 +0000
commit01d72b37a8db853ebbaebb2b3f97ce980c1e8e01 (patch)
tree561d111d7342e5a2077cb3987399f57b81867a61 /etc/rc.initial.setlanip
parent8dee794bb0e4a411813d1dc46278483c6b7c5565 (diff)
downloadpfsense-01d72b37a8db853ebbaebb2b3f97ce980c1e8e01.zip
pfsense-01d72b37a8db853ebbaebb2b3f97ce980c1e8e01.tar.gz
* Allow HTTPS/HTTP revert and anti-lockout rule on WAN
Diffstat (limited to 'etc/rc.initial.setlanip')
-rwxr-xr-xetc/rc.initial.setlanip36
1 files changed, 16 insertions, 20 deletions
diff --git a/etc/rc.initial.setlanip b/etc/rc.initial.setlanip
index 8cb4763..acb461a 100755
--- a/etc/rc.initial.setlanip
+++ b/etc/rc.initial.setlanip
@@ -144,27 +144,23 @@
unset($config['dhcpd'][$interface]['enable']);
}
- if($interface == "lan") {
-
- if ($config['system']['webgui']['protocol'] == "https") {
-
- do {
- $good = false;
- echo "\n" . gettext("Do you want to revert to HTTP as the webConfigurator protocol? (y/n)") . " ";
- $yn = strtolower(chop(fgets($fp)));
- if ($yn[0] == "y" or $yn[0] == "n")
- $good = true;
- } while (!$good);
-
- if ($yn == "y")
- $config['system']['webgui']['protocol'] = "http";
- }
-
- if (isset($config['system']['webgui']['noantilockout'])) {
- echo "\n" . gettext("Note: the anti-lockout rule on {$interface} has been re-enabled.") . "\n";
- unset($config['system']['webgui']['noantilockout']);
- }
+ if ($config['system']['webgui']['protocol'] == "https") {
+
+ do {
+ $good = false;
+ echo "\n" . gettext("Do you want to revert to HTTP as the webConfigurator protocol? (y/n)") . " ";
+ $yn = strtolower(chop(fgets($fp)));
+ if ($yn[0] == "y" or $yn[0] == "n")
+ $good = true;
+ } while (!$good);
+
+ if ($yn == "y")
+ $config['system']['webgui']['protocol'] = "http";
+ }
+ if (isset($config['system']['webgui']['noantilockout'])) {
+ echo "\n" . gettext("Note: the anti-lockout rule on {$interface} has been re-enabled.") . "\n";
+ unset($config['system']['webgui']['noantilockout']);
}
write_config(gettext("{$interface} IP configuration from console menu"));
OpenPOWER on IntegriCloud