From b07f827a905ad502583965d5a43a89a50bcdbb3d Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 7 Oct 2015 12:14:17 -0400 Subject: Don't enforce the use of only IPv4 or IPv6 when using IKEv2 since it works fine with IKEv2 --- usr/local/www/vpn_ipsec_phase1.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr') diff --git a/usr/local/www/vpn_ipsec_phase1.php b/usr/local/www/vpn_ipsec_phase1.php index a302eaf..8549805 100644 --- a/usr/local/www/vpn_ipsec_phase1.php +++ b/usr/local/www/vpn_ipsec_phase1.php @@ -233,7 +233,7 @@ if ($_POST) { } } - if (is_array($a_phase2) && (count($a_phase2))) { + if (($pconfig['iketype'] == "ikev1") && is_array($a_phase2) && (count($a_phase2))) { foreach ($a_phase2 as $phase2) { if($phase2['ikeid'] == $pconfig['ikeid']) { if (($pconfig['protocol'] == "inet") && ($phase2['mode'] == "tunnel6")) { -- cgit v1.1