Skip to content

Commit

Permalink
Don't enforce the use of only IPv4 or IPv6 when using IKEv2 since it …
Browse files Browse the repository at this point in the history
…works fine with IKEv2
  • Loading branch information
jim-p committed Oct 7, 2015
1 parent 23ec30e commit b07f827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/local/www/vpn_ipsec_phase1.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
}
}

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")) {
Expand Down

0 comments on commit b07f827

Please sign in to comment.