mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
OpenVPN bandwidth fix from Martin Fuchs
This commit is contained in:
parent
8d900185ba
commit
df3f9675d2
@ -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)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user