mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
openvpn: Deleted double entries for TLSAUTH and DAUTH.
Also drop remaining if clauses for Engines.
This commit is contained in:
@@ -2511,20 +2511,8 @@ ADV_ERROR:
|
||||
if ($cgiparams{'DAUTH'} eq '') {
|
||||
$cgiparams{'DAUTH'} = 'SHA1';
|
||||
}
|
||||
if ($cgiparams{'DAUTH'} eq '') {
|
||||
$cgiparams{'DAUTH'} = 'SHA1';
|
||||
}
|
||||
if ($cgiparams{'ENGINES'} eq '') {
|
||||
$cgiparams{'ENGINES'} = 'disabled';
|
||||
}
|
||||
if ($cgiparams{'TLSAUTH'} eq '') {
|
||||
$cgiparams{'TLSAUTH'} = 'off';
|
||||
}
|
||||
if ($cgiparams{'DAUTH'} eq '') {
|
||||
$cgiparams{'DAUTH'} = 'SHA1';
|
||||
}
|
||||
if ($cgiparams{'TLSAUTH'} eq '') {
|
||||
$cgiparams{'TLSAUTH'} = 'off';
|
||||
$cgiparams{'TLSAUTH'} = 'off';
|
||||
}
|
||||
$checked{'CLIENT2CLIENT'}{'off'} = '';
|
||||
$checked{'CLIENT2CLIENT'}{'on'} = '';
|
||||
@@ -4927,9 +4915,6 @@ END
|
||||
if ($cgiparams{'DAUTH'} eq '') {
|
||||
$cgiparams{'DAUTH'} = 'SHA1';
|
||||
}
|
||||
if ($cgiparams{'ENGINES'} eq '') {
|
||||
$cgiparams{'ENGINES'} = 'disabled';
|
||||
}
|
||||
if ($cgiparams{'DOVPN_SUBNET'} eq '') {
|
||||
$cgiparams{'DOVPN_SUBNET'} = '10.' . int(rand(256)) . '.' . int(rand(256)) . '.0/255.255.255.0';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user