summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr/local/www/vpn_ipsec_phase1.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/vpn_ipsec_phase1.php b/usr/local/www/vpn_ipsec_phase1.php
index 00a63fa..3940378 100644
--- a/usr/local/www/vpn_ipsec_phase1.php
+++ b/usr/local/www/vpn_ipsec_phase1.php
@@ -142,7 +142,7 @@ if ($_POST) {
$method = $pconfig['authentication_method'];
// Unset ca and cert if not required to avaoid storing in config
- if ($method == "pre_shared_key" || method == "xauth_psk_server"){
+ if ($method == "pre_shared_key" || $method == "xauth_psk_server"){
unset($pconfig['caref']);
unset($pconfig['certref']);
}
OpenPOWER on IntegriCloud