diff options
author | jim-p <jimp@pfsense.org> | 2017-05-10 14:24:12 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2017-05-10 14:24:12 -0400 |
commit | 2df5d9ee54e4270d59d7e9b6e11ec2e8284ef840 (patch) | |
tree | f06b9adbc68034f6188ff395215cacd94d106b03 /src/etc | |
parent | 6252b47062a3bf2be19a43be480fd0acd56b75d0 (diff) | |
download | pfsense-2df5d9ee54e4270d59d7e9b6e11ec2e8284ef840.zip pfsense-2df5d9ee54e4270d59d7e9b6e11ec2e8284ef840.tar.gz |
Add OpenVPN GUI option for "fast-io" to clients and servers. Ticket #7507
Only compatible with UDP modes, and also not compatible with "shaper".
Diffstat (limited to 'src/etc')
-rw-r--r-- | src/etc/inc/openvpn.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/etc/inc/openvpn.inc b/src/etc/inc/openvpn.inc index 39bcdaf..3f1c85a 100644 --- a/src/etc/inc/openvpn.inc +++ b/src/etc/inc/openvpn.inc @@ -1180,6 +1180,13 @@ function openvpn_reconfigure($mode, $settings) { } } + /* UDP Fast I/O. Only compatible with UDP and also not compatible with OpenVPN's "shaper" directive. */ + if ($settings['udp_fast_io'] + && (strtolower(substr($settings['protocol'], 0, 3)) == "udp") + && (empty($settings['use_shaper']))) { + $conf .= "fast-io\n"; + } + openvpn_add_custom($settings, $conf); openvpn_create_dirs(); |