mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
(legacy) some more uninitialized elements
This commit is contained in:
parent
b73610bc24
commit
2e76f6805c
@ -1319,11 +1319,11 @@ function filter_nat_rules_automatic_tonathosts($with_descr = false) {
|
||||
foreach($FilterIflist as $ocname => $oc) {
|
||||
if(interface_has_gateway($ocname))
|
||||
continue;
|
||||
if(is_ipaddr($oc['alias-address'])) {
|
||||
if(isset($oc['alias-address']) && is_ipaddr($oc['alias-address'])) {
|
||||
$tonathosts[] = "{$oc['alias-address']}/{$oc['alias-subnet']}";
|
||||
$descriptions[] = $oc['descr'] . " " . gettext("DHCP alias address");
|
||||
}
|
||||
if($oc['sa']) {
|
||||
if(!empty($oc['sa'])) {
|
||||
$tonathosts[] = "{$oc['sa']}/{$oc['sn']}";
|
||||
$descriptions[] = $oc['descr'];
|
||||
if (isset($oc['vips']) && is_array($oc['vips'])) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user