diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-09 01:10:28 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-09 01:10:28 +0000 |
commit | 01d72b37a8db853ebbaebb2b3f97ce980c1e8e01 (patch) | |
tree | 561d111d7342e5a2077cb3987399f57b81867a61 /etc/rc.initial.setlanip | |
parent | 8dee794bb0e4a411813d1dc46278483c6b7c5565 (diff) | |
download | pfsense-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-x | etc/rc.initial.setlanip | 36 |
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")); |