ovpnmain.cgi: Fix IP address calculation with static pools

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2024-09-22 14:33:03 +00:00
parent 409a4b7a62
commit c55ce64de5
2 changed files with 2 additions and 1 deletions

View File

@@ -3,5 +3,6 @@ etc/collectd.d
etc/rc.d/init.d/collectd
srv/web/ipfire/cgi-bin/index.cgi
srv/web/ipfire/cgi-bin/logs.cgi/log.dat
srv/web/ipfire/cgi-bin/ovpnmain.cgi
srv/web/ipfire/cgi-bin/vpnmain.cgi
var/ipfire/network-functions.pl

View File

@@ -569,7 +569,7 @@ sub getccdadresses
for (my $i=1;$i<=$count;$i++) {
my $tmpip=$iprange[$i-1];
my $stepper=$i*4;
$iprange[$i]= &General::getnextip($tmpip,4);
$iprange[$i]= &Network::bin2ip(&Network::ip2bin($tmpip) + 4);
}
my $r=0;
foreach my $key (keys %ccdhash) {