openvpn: Wrong subnet calculation bug fix.

Fixes #10466.
This commit is contained in:
Alexander Marx
2014-01-31 21:23:21 +01:00
committed by Michael Tremer
parent 178df99a87
commit 8084656823

View File

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