OpenVPN ccd: fixed counter in static networks. Only 63 hosts are possible in /24 subnet Now IP-Range begins with ".2"

This commit is contained in:
Alexander Marx
2012-11-27 14:48:33 +01:00
committed by Michael Tremer
parent df9b48b753
commit ac87f37110

View File

@@ -635,7 +635,7 @@ sub getccdadresses
my %ccdhash=();
&General::readhasharray("${General::swroot}/ovpn/ovpnconfig", \%ccdhash);
$iprange[0]=$ip1.".".$ip2.".".$ip3.".".2;
for (my $i=0;$i<=$count-1;$i++) {
for (my $i=1;$i<=$count;$i++) {
my $tmpip=$iprange[$i-1];
my $stepper=$i*4;
$iprange[$i]= &General::getnextip($tmpip,4);