mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-18 23:12:59 +02:00
ovpnmain.cgi: Fixes bug#13548 - imported N2N client connections get disabled instead of no-pass
- When bug#11408 was fixed it was missed that key 41 has disabled inserted into it when uploading into the N2N client. This replaced the no-pass entry for all N2N connections resulting in the ovpnmain.cgi not being able to show the status correctly as the code looks for pass or no-pass. - The disabled entry has been present for a very long time and is not utilised anywhere in the code. - This fix ensures that key 41 in the uploaded N2N connection has no-pass entered - Tested out and confirmed in my vm testbed. Fixes: Bug#13548 Tested-by: Adolf Belka <adolf.belka@ipfire.org> Signed-off-by: Adolf Belka <adolf.belka@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
6ea7d8c67e
commit
4a0648243b
@@ -3472,7 +3472,7 @@ foreach my $dkey (keys %confighash) {
|
||||
$confighash{$key}[31] = $n2ntunmtu[1];
|
||||
$confighash{$key}[39] = $n2nauth[1];
|
||||
$confighash{$key}[40] = $n2ncipher[1];
|
||||
$confighash{$key}[41] = 'disabled';
|
||||
$confighash{$key}[41] = 'no-pass';
|
||||
|
||||
&General::writehasharray("${General::swroot}/ovpn/ovpnconfig", \%confighash);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user