mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-25 10:22:59 +02:00
openvpn ccd: Minor fixes.
some bugfixes, client advanced options no more visible under net-2-net config, blue network is recognized, Fixed the bug with wrong ip address in ccd file.
This commit is contained in:
committed by
Michael Tremer
parent
a66e24bbfd
commit
e81be1e1ed
@@ -27,7 +27,7 @@ open(FILE,"/var/ipfire/ovpn/server.conf");
|
||||
|
||||
&General::readhasharray("/var/ipfire/ovpn/ovpnconfig", \%ovpnconfig);
|
||||
foreach my $key (keys %ovpnconfig){
|
||||
if($ovpnconfig{$key}[32] eq ''){
|
||||
if($ovpnconfig{$key}[32] eq '' && $ovpnconfig{$key}[3] eq 'host'){
|
||||
open ( CCDRWCONF,'>',"/var/ipfire/ovpn/ccd/$ovpnconfig{$key}[2]") or die "Unable to create clientconfigfile $!";
|
||||
print CCDRWCONF "# OpenVPN Clientconfig from CCD extension by Copymaster#\n\n";
|
||||
print CCDRWCONF "#This client uses the dynamic pool\n\n";
|
||||
|
||||
Reference in New Issue
Block a user