]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ovpnmain.cgi: Remove using dropped &General::getlastip() function
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 26 Sep 2024 20:40:04 +0000 (20:40 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 26 Sep 2024 20:40:04 +0000 (20:40 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/ovpnmain.cgi

index daaa059a49e67a5f7ecbb452cc365808e28c5905..20f256f4b2e812099318385aaf419affca471d9f 100755 (executable)
@@ -4402,7 +4402,7 @@ if ($cgiparams{'TYPE'} eq 'net') {
                                print CCDRWCONF "#This client uses the dynamic pool\n";
                        }else{
                                print CCDRWCONF "#Ip address client and server\n";
-                               print CCDRWCONF "ifconfig-push $ccdip ".&General::getlastip($ccdip,1)."\n";
+                               print CCDRWCONF "ifconfig-push $ccdip ". &Network::bin2ip(&Network::ip2bin($ccdip) - 1) ."\n";
                        }
                        if ($confighash{$key}[34] eq 'on'){
                                print CCDRWCONF "\n#Redirect Gateway: \n#All IP traffic is redirected through the vpn \n";