From df82fae1a3aafffb9322217ef274c7313b26f8e8 Mon Sep 17 00:00:00 2001 From: smos Date: Mon, 21 Feb 2011 14:17:23 +0100 Subject: [PATCH] Don't forget to include $g, otherwise the check will fail and still perform a DNS resolve --- etc/inc/ipsec.inc | 1 + 1 file changed, 1 insertion(+) 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)) {