mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
vpnmain.cgi: Don't populate GREEN subnet when green doesn't exist
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -1945,7 +1945,12 @@ END
|
||||
} else {
|
||||
$cgiparams{'AUTH'} = 'certgen';
|
||||
}
|
||||
$cgiparams{'LOCAL_SUBNET'} = "$netsettings{'GREEN_NETADDRESS'}/$netsettings{'GREEN_NETMASK'}";
|
||||
|
||||
if ($netsettings{"GREEN_NETADDRESS"} && $netsettings{"GREEN_NETMASK"}) {
|
||||
$cgiparams{"LOCAL_SUBNET"} = $netsettings{'GREEN_NETADDRESS'} . "/" . $netsettings{'GREEN_NETMASK'};
|
||||
} else {
|
||||
$cgiparams{"LOCAL_SUBNET"} = "";
|
||||
}
|
||||
$cgiparams{'CERT_EMAIL'} = $vpnsettings{'ROOTCERT_EMAIL'};
|
||||
$cgiparams{'CERT_OU'} = $vpnsettings{'ROOTCERT_OU'};
|
||||
$cgiparams{'CERT_ORGANIZATION'} = $vpnsettings{'ROOTCERT_ORGANIZATION'};
|
||||
|
||||
Reference in New Issue
Block a user