diff --git a/etc/inc/ipsec.inc b/etc/inc/ipsec.inc index 0eefa9286c..e15a14c6c9 100644 --- a/etc/inc/ipsec.inc +++ b/etc/inc/ipsec.inc @@ -143,6 +143,7 @@ function ipsec_get_phase1_src(& $ph1ent) { * Return phase1 local address */ function ipsec_get_phase1_dst(& $ph1ent) { + global $g; $rg = $ph1ent['remote-gateway']; if (!is_ipaddr($rg)) {