mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Don't forget to include $g, otherwise the check will fail and still perform a DNS resolve
This commit is contained in:
parent
33d5cb7a0f
commit
df82fae1a3
@ -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)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user