summaryrefslogtreecommitdiffstats
path: root/etc/inc/openvpn.inc
diff options
context:
space:
mode:
authorPierre POMES <pierre.pomes@gmail.com>2011-01-15 10:03:40 -0500
committerPierre POMES <pierre.pomes@gmail.com>2011-01-15 10:03:40 -0500
commit756720e24ce18514f69311a01dc035d78ac32bf3 (patch)
tree440d361cddcd5e60dec3efc4d3976a4b3d09554b /etc/inc/openvpn.inc
parent5a05633aa28be209338c7d8c6d109b11f2609137 (diff)
downloadpfsense-756720e24ce18514f69311a01dc035d78ac32bf3.zip
pfsense-756720e24ce18514f69311a01dc035d78ac32bf3.tar.gz
Ticket #1198. Fix code when checking client or server
Diffstat (limited to 'etc/inc/openvpn.inc')
-rw-r--r--etc/inc/openvpn.inc4
1 files 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
+?>
OpenPOWER on IntegriCloud