From f064082abc3373277426aecbe17e98656a1d849e Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 3 Mar 2022 08:11:10 +0100 Subject: [PATCH] ipsec: fix mobile switch logic PR: https://forum.opnsense.org/index.php?topic=27291.0 --- src/www/vpn_ipsec_phase2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/www/vpn_ipsec_phase2.php b/src/www/vpn_ipsec_phase2.php index 8baf8a27d..5bf147406 100644 --- a/src/www/vpn_ipsec_phase2.php +++ b/src/www/vpn_ipsec_phase2.php @@ -189,7 +189,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { /* mobile client */ foreach ($config['ipsec']['phase1'] as $phase1ent) { - if ($phase1ent['ikeid'] == $pconfig['ikeid']) { + if ($phase1ent['ikeid'] == $pconfig['ikeid'] && isset($phase1ent['mobile'])) { $pconfig['mobile'] = true; break; }