mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
rc: show config regardless of if we can handle it or not
This commit is contained in:
parent
1cf41f3f4d
commit
5cfe9d049a
@ -115,17 +115,17 @@ function get_interface_config_description($iface)
|
||||
$ipaddr = $c['ipaddr'];
|
||||
$ipaddrv6 = $c['ipaddrv6'];
|
||||
if (is_ipaddr($ipaddr)) {
|
||||
$result2[] = "static";
|
||||
} elseif ($ipaddr == "dhcp") {
|
||||
$result2[] = "dhcp";
|
||||
$result2[] = 'static';
|
||||
} elseif (!empty($ipaddr)) {
|
||||
$result2[] = $ipaddr;
|
||||
}
|
||||
if (is_ipaddr($ipaddrv6)) {
|
||||
$result2[] = "staticv6";
|
||||
} elseif ($ipaddrv6 == "dhcp6") {
|
||||
$result2[] = "dhcp6";
|
||||
$result2[] = 'staticv6';
|
||||
} elseif (!empty($ipaddrv6)) {
|
||||
$result2[] = $ipaddrv6;
|
||||
}
|
||||
if (count($result2)) {
|
||||
$result .= " - " . implode(", ", $result2);
|
||||
$result .= ' - ' . implode(', ', $result2);
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user