From 756720e24ce18514f69311a01dc035d78ac32bf3 Mon Sep 17 00:00:00 2001 From: Pierre POMES Date: Sat, 15 Jan 2011 10:03:40 -0500 Subject: Ticket #1198. Fix code when checking client or server --- etc/inc/openvpn.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc index 4f5396a..ca463e8 100644 --- a/etc/inc/openvpn.inc +++ b/etc/inc/openvpn.inc @@ -514,7 +514,7 @@ function openvpn_reconfigure($mode,& $settings) { openvpn_add_keyfile($crl['text'], $conf, $mode_id, "crl-verify"); } if ($settings['tls']) { - if (stristr($settings['mode'], "server")) + if ($mode == "server") $tlsopt = 0; else $tlsopt = 1; @@ -938,4 +938,4 @@ function openvpn_refresh_crls() { } } -?> \ No newline at end of file +?> -- cgit v1.1