mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 10:35:53 +02:00
ovpnmain.cgi: Remove using dropped &General::getlastip() function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user