summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-13 16:33:02 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-13 16:33:02 +0000
commit8b181ff5d6698b79ae7f952456600cbc5679d170 (patch)
tree2c030c5103e7c186ed95f9651daa5b7c118fa471 /etc/rc
parent71cfa893905844d476f0af221fa7b441c1e4906c (diff)
downloadpfsense-8b181ff5d6698b79ae7f952456600cbc5679d170.zip
pfsense-8b181ff5d6698b79ae7f952456600cbc5679d170.tar.gz
Correctly hit HTTP or HTTPS when enabled
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc9
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 4782511..c9e80c9 100755
--- a/etc/rc
+++ b/etc/rc
@@ -208,7 +208,14 @@ rm -rf /usr/local/pkg/pf/CVS
/usr/local/sbin/check_reload_status >/dev/null &
echo -n "Pre-caching PHP for faster responses..."
-fetch -q -o /tmp/ http://localhost/preload.php
+CONFIG="/cf/conf/config.xml"
+WORD="https"
+if grep "$WORD" "$CONFIG"
+then
+ fetch -q -o /tmp/ https://localhost/preload.php
+else
+ fetch -q -o /tmp/ http://localhost/preload.php
+fi
rm -f /tmp/phpfast
echo " done."
OpenPOWER on IntegriCloud