aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/squid/squid.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/squid/squid.inc b/packages/squid/squid.inc
index ecefe813..9f3790e6 100644
--- a/packages/squid/squid.inc
+++ b/packages/squid/squid.inc
@@ -288,6 +288,10 @@ function squid_validate_general($post, $input_errors) {
if(($config['system']['webgui']['port'] == "") && ($config['system']['webgui']['protocol'] == "http")) {
$webgui_port = 80;
}
+ if(($config['system']['webgui']['port'] == "") && ($config['system']['webgui']['protocol'] == "https")) {
+ $webgui_port = 443;
+ }
+
if (($post['transparent_proxy'] != 'on') && ($port == $webgui_port)) {
$input_errors[] = "You can not run squid on the same port as the webgui";