Don't forget to include $g, otherwise the check will fail and still perform a DNS resolve

This commit is contained in:
smos 2011-02-21 14:17:23 +01:00
parent 33d5cb7a0f
commit df82fae1a3

View File

@ -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)) {