From: Alexander Marx Date: Tue, 27 Nov 2012 13:48:33 +0000 (+0100) Subject: OpenVPN ccd: fixed counter in static networks. Only 63 hosts are possible in /24... X-Git-Url: http://git.ipfire.org/?p=people%2Fummeegge%2Fipfire-2.x.git;a=commitdiff_plain;h=ac87f37110a5cfb41ed65c1b2b83cd3d340ce125 OpenVPN ccd: fixed counter in static networks. Only 63 hosts are possible in /24 subnet Now IP-Range begins with ".2" --- diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 24bead32b2..1c1af21cc5 100755 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -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);