]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
openvpn: Wrong subnet calculation bug fix.
authorAlexander Marx <amarx@ipfire.org>
Fri, 31 Jan 2014 20:23:21 +0000 (21:23 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 2 Feb 2014 13:38:24 +0000 (14:38 +0100)
Fixes #10466.

html/cgi-bin/ovpnmain.cgi

index 71366cbedcbc2f93ad818dab2d67c04f1269e205..8858974a04b28bbc5587b8d0cad2ab82d0c69329 100644 (file)
@@ -509,7 +509,7 @@ sub getccdadresses
        my @iprange=();
        my %ccdhash=();
        &General::readhasharray("${General::swroot}/ovpn/ovpnconfig", \%ccdhash);
        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;
        for (my $i=1;$i<=$count;$i++) {
                my $tmpip=$iprange[$i-1];
                my $stepper=$i*4;