mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-14 13:02:58 +02:00
BUG10834: fixes ovpn-ccd-convert
When restoring an old backup, all OpenVPN RW's get the dynamic network.
This commit is contained in:
@@ -42,7 +42,7 @@ foreach my $key (keys %ovpnconfig){
|
||||
}else{
|
||||
print "Client $ovpnconfig{$key}[2] NOT converted!\n";
|
||||
}
|
||||
$ovpnconfig{$key}[32] = 'dynamic';
|
||||
$ovpnconfig{$key}[32] = 'dynamic' if ($ovpnconfig{$key}[32] eq '');
|
||||
}
|
||||
&General::writehasharray("/var/ipfire/ovpn/ovpnconfig", \%ovpnconfig);
|
||||
if ($running eq 'on')
|
||||
|
||||
Reference in New Issue
Block a user