diff options
author | smos <seth.mos@dds.nl> | 2011-02-21 14:17:23 +0100 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2011-02-21 14:17:23 +0100 |
commit | df82fae1a3aafffb9322217ef274c7313b26f8e8 (patch) | |
tree | 3243703a73bb1c585fe669e15d27942a7302de03 /etc | |
parent | 33d5cb7a0fc45e0d3d0b36f9f92df2e79428112c (diff) | |
download | pfsense-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.inc | 1 |
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)) { |