summaryrefslogtreecommitdiffstats
path: root/etc/inc/ipsec.inc
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2014-11-26 13:10:01 +0100
committerErmal LUÇI <eri@pfsense.org>2014-11-26 13:10:01 +0100
commit285ef132f7d671620f269a57d2ebcff585d2a493 (patch)
treeb491fad66d22765d9640b2ac543c41b6e417a95d /etc/inc/ipsec.inc
parent32e834ffd3b4cc6cdc6b147c91cb6dbcb0a93288 (diff)
downloadpfsense-285ef132f7d671620f269a57d2ebcff585d2a493.zip
pfsense-285ef132f7d671620f269a57d2ebcff585d2a493.tar.gz
Rather than set the g['booting'] on globals provide a function to test for that doing the right checks
Diffstat (limited to 'etc/inc/ipsec.inc')
-rw-r--r--etc/inc/ipsec.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/ipsec.inc b/etc/inc/ipsec.inc
index f2eaa06..959aead 100644
--- a/etc/inc/ipsec.inc
+++ b/etc/inc/ipsec.inc
@@ -197,7 +197,7 @@ function ipsec_get_phase1_dst(& $ph1ent) {
return false;
$rg = $ph1ent['remote-gateway'];
if (!is_ipaddr($rg)) {
- if(! $g['booting'])
+ if(! platform_booting())
return resolve_retry($rg);
}
if(!is_ipaddr($rg))
OpenPOWER on IntegriCloud