summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-03 23:52:49 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-03 23:52:49 +0000
commit4c73bfd6c70cda5c1920c1cb449371e0331da776 (patch)
treec418f17c0848e4b208f9da82ffaaed9394eab5fd /etc
parent8698218da0a87cb491236607720d1fa45af9b668 (diff)
downloadpfsense-4c73bfd6c70cda5c1920c1cb449371e0331da776.zip
pfsense-4c73bfd6c70cda5c1920c1cb449371e0331da776.tar.gz
Correctly handle TCP
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/openvpn.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index 12aa5a4..966c948 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -236,6 +236,11 @@ function ovpn_srv_config_generate() {
$ovpn_config .= "--push \"inactive {$server['psh_options']['inact']}\" ";
}
+ /* Set protocol being used (TCP or UDP) */
+ if ($server['psh_options']['proto'] == 'TCP') {
+ $ovpn_config .= "--proto tcp-server ";
+ }
+
//trigger_error("OVPN: $ovpn_config", E_USER_NOTICE);
return $ovpn_config;
}
OpenPOWER on IntegriCloud