summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2011-02-21 14:17:23 +0100
committersmos <seth.mos@dds.nl>2011-02-21 14:17:23 +0100
commitdf82fae1a3aafffb9322217ef274c7313b26f8e8 (patch)
tree3243703a73bb1c585fe669e15d27942a7302de03 /etc
parent33d5cb7a0fc45e0d3d0b36f9f92df2e79428112c (diff)
downloadpfsense-df82fae1a3aafffb9322217ef274c7313b26f8e8.zip
pfsense-df82fae1a3aafffb9322217ef274c7313b26f8e8.tar.gz
Don't forget to include $g, otherwise the check will fail and still perform a DNS resolve
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/ipsec.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/inc/ipsec.inc b/etc/inc/ipsec.inc
index 0eefa92..e15a14c 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)) {
OpenPOWER on IntegriCloud