From 83e16ead41830514e02055d6b0724bc44b2a6022 Mon Sep 17 00:00:00 2001 From: Ermal Date: Wed, 5 May 2010 16:59:00 +0000 Subject: The gui defaults to https in 2.0 correct it to make sure it is not stopped by CP on the CP interface[s]. --- etc/inc/captiveportal.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'etc') diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 94ca06e..1a429dc 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -405,10 +405,10 @@ EOD; } if (!empty($config['system']['webgui']['port'])) $port = $config['system']['webgui']['port']; - else if ($config['system']['webgui']['proto'] == "https") - $port = 443; - else + else if ($config['system']['webgui']['proto'] == "http") $port = 80; + else + $port = 443; $rulenum++; $cprules .= "add {$rulenum} set 1 pass tcp from any to {$ips} {$port} in \n"; $rulenum++; -- cgit v1.1