mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-19 15:32:59 +02:00
openvpn: Properly handle fragment size.
Allow settings FRAGMENT=0.
This commit is contained in:
@@ -359,7 +359,7 @@ sub writeserverconf {
|
||||
if ($sovpnsettings{MSSFIX} eq 'on') {
|
||||
print CONF "mssfix\n";
|
||||
}
|
||||
if ($sovpnsettings{FRAGMENT} ne '' && $sovpnsettings{'DPROTOCOL'} ne 'tcp') {
|
||||
if (($sovpnsettings{FRAGMENT} ne '' && $sovpnsettings{FRAGMENT} ne 0) && $sovpnsettings{'DPROTOCOL'} ne 'tcp') {
|
||||
print CONF "fragment $sovpnsettings{'FRAGMENT'}\n";
|
||||
}
|
||||
if ($sovpnsettings{KEEPALIVE_1} > 0 && $sovpnsettings{KEEPALIVE_2} > 0) {
|
||||
|
||||
Reference in New Issue
Block a user