Commit b8e302f1 authored by Franco Fichtner's avatar Franco Fichtner

ipsec: ikev2 can handle multiple phase 1 with the same IP

PR: https://github.com/opnsense/core/issues/1714
(cherry picked from commit 738f9983)
parent 2e0e6861
...@@ -231,7 +231,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -231,7 +231,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
} }
} }
if ((!empty($pconfig['remote-gateway']) && is_ipaddr($pconfig['remote-gateway']) && !isset($pconfig['disabled']) )) { if (!empty($pconfig['remote-gateway']) && is_ipaddr($pconfig['remote-gateway']) && !isset($pconfig['disabled']) &&
(empty($pconfig['iketype']) || $pconfig['iketype'] == "ikev1")) {
$t = 0; $t = 0;
foreach ($a_phase1 as $ph1tmp) { foreach ($a_phase1 as $ph1tmp) {
if ($p1index <> $t) { if ($p1index <> $t) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment