Skip to content

Commit

Permalink
(legacy) fix authentication_method / rsa check for ipsec.secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed Jan 7, 2016
1 parent bd652e9 commit 8e664e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/etc/inc/vpn.inc
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ EOD;
continue;
}

if (strpos($ph1ent['authentication_method'], 'rsa') || $ph1ent['authentication_method'] == 'eap-tls') {
if (strpos($ph1ent['authentication_method'], 'rsa') !== false || $ph1ent['authentication_method'] == 'eap-tls') {
$certline = '';
$ikeid = $ph1ent['ikeid'];
$cert = lookup_cert($ph1ent['certref']);
Expand Down

0 comments on commit 8e664e7

Please sign in to comment.