1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

fix display of ipv6 addresses

This commit is contained in:
glaszig 2019-07-30 22:24:01 +02:00
parent d81d1b0a10
commit 4a5a39c2bc

View File

@ -48,13 +48,8 @@ function DisplayDashboard()
if (!preg_match_all('/inet6 ([a-f0-9:]+)/i', $stdoutIpWRepeatedSpaces, $matchesIpv6Addr)) { if (!preg_match_all('/inet6 ([a-f0-9:]+)/i', $stdoutIpWRepeatedSpaces, $matchesIpv6Addr)) {
$ipv6Addrs = _('No IPv6 Address Found'); $ipv6Addrs = _('No IPv6 Address Found');
} else { } else {
$numMatchesIpv6Addr = count($matchesIpv6Addr); if (isset($matchesIpv6Addr[1])) {
for ($i = 1; $i < $numMatchesIpv6Addr; ++$i) { $ipv6Addrs = implode(' ', $matchesIpv6Addr[1]);
if ($i > 1) {
$ipv6Addrs .= ' ';
}
$ipv6Addrs .= $matchesIpv6Addr[$i];
} }
} }