From df3f9675d26a201b2022fde2df01ac3ba50cd2dc Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 26 Apr 2007 21:47:49 +0000 Subject: [PATCH] OpenVPN bandwidth fix from Martin Fuchs --- etc/inc/openvpn.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc index 475174ecc6..a4f9dbc58c 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)) {