mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Bail out of ipsec_get_phase1_dst if there is no remote gateway, else it falls into running resolve_retry() with invalid parameters causing a long delay in returning.
This commit is contained in:
parent
39e268c4fd
commit
2f3554bba1
@ -144,7 +144,8 @@ function ipsec_get_phase1_src(& $ph1ent) {
|
||||
*/
|
||||
function ipsec_get_phase1_dst(& $ph1ent) {
|
||||
global $g;
|
||||
|
||||
if (!$ph1ent['remote-gateway'])
|
||||
return false;
|
||||
$rg = $ph1ent['remote-gateway'];
|
||||
if (!is_ipaddr($rg)) {
|
||||
if(! $g['booting'])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user