summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-03-05 17:12:15 +0000
committerErmal Luçi <eri@pfsense.org>2010-03-05 17:12:15 +0000
commiteb0f4fc69efd3b623ad6ff7a0ae90274a2e787d7 (patch)
tree615b37a9be97649582e45eea6268a0dd9b6f1b03 /etc
parent06f619150f295879eca53853ba368d561501c612 (diff)
downloadpfsense-eb0f4fc69efd3b623ad6ff7a0ae90274a2e787d7.zip
pfsense-eb0f4fc69efd3b623ad6ff7a0ae90274a2e787d7.tar.gz
Default to http.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/system.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index c322459..ff5bd05 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)
OpenPOWER on IntegriCloud