diff options
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/ipsec.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/ipsec.inc b/etc/inc/ipsec.inc index 7371702..07c4869 100644 --- a/etc/inc/ipsec.inc +++ b/etc/inc/ipsec.inc @@ -144,7 +144,8 @@ function ipsec_get_phase1_src(& $ph1ent) { */ function ipsec_get_phase1_dst(& $ph1ent) { global $g; - + if (!$ph1ent['remote-gateway']) + return false; $rg = $ph1ent['remote-gateway']; if (!is_ipaddr($rg)) { if(! $g['booting']) |