diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-03 23:52:49 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-03 23:52:49 +0000 |
commit | 4c73bfd6c70cda5c1920c1cb449371e0331da776 (patch) | |
tree | c418f17c0848e4b208f9da82ffaaed9394eab5fd | |
parent | 8698218da0a87cb491236607720d1fa45af9b668 (diff) | |
download | pfsense-4c73bfd6c70cda5c1920c1cb449371e0331da776.zip pfsense-4c73bfd6c70cda5c1920c1cb449371e0331da776.tar.gz |
Correctly handle TCP
-rw-r--r-- | etc/inc/openvpn.inc | 5 |
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; } |