summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-04-26 21:47:56 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-04-26 21:47:56 +0000
commit12415bd807609df124bde7611d0b6cf563261e3d (patch)
tree73b018b64a23e706a6002aa30aa518707a7b179a /etc
parent6b09131e0a9f094876e3d0ef7282cf1b62088c57 (diff)
downloadpfsense-12415bd807609df124bde7611d0b6cf563261e3d.zip
pfsense-12415bd807609df124bde7611d0b6cf563261e3d.tar.gz
OpenVPN bandwidth fix from Martin Fuchs
Diffstat (limited to 'etc')
-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 475174e..a4f9dbc 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -277,6 +277,8 @@ EOD;
// The port we'll listen at
$openvpn_conf .= "lport {$lport}\n";
+ if (!empty($settings['use_shaper'])) $openvpn_conf .= "shaper {$settings['use_shaper']}\n";
+
if (!empty($settings['interface_ip'])) {
// Configure the IPs according to the address pool
list($ip, $mask) = explode('/', $settings['interface_ip']);
@@ -310,8 +312,6 @@ EOD;
$openvpn_conf .= "float\n";
}
- if (!empty($settings['use_shaper'])) $openvpn_conf .= "shaper {$settings['use_shaper']}\n";
-
if (!empty($settings['custom_options'])) {
$options = explode(';', $settings['custom_options']);
if (is_array($options)) {
OpenPOWER on IntegriCloud