From eb0f4fc69efd3b623ad6ff7a0ae90274a2e787d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Fri, 5 Mar 2010 17:12:15 +0000 Subject: [PATCH] Default to http. --- etc/inc/system.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etc/inc/system.inc b/etc/inc/system.inc index c322459173..ff5bd05db0 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -690,7 +690,10 @@ function system_webgui_start() { $res = mwexec("/usr/local/sbin/lighttpd -f {$g['varetc_path']}/lighty-webConfigurator.conf"); /* fetch page to preload apc cache */ - mwexec("fetch -o /dev/null -q {$config['system']['webgui']['protocol']}://localhost:{$portarg}/preload.php"); + $proto = "http"; + if ($config['system']['webgui']['protocol']) + $proto = $config['system']['webgui']['protocol']; + mwexec("/usr/bin/fetch -o /dev/null -q {$proto}://localhost:{$portarg}/preload.php"); if ($g['booting']) { if ($res == 0)