mirror of
https://github.com/unraid/webgui.git
synced 2026-04-23 18:48:49 -05:00
Routing table: fix display of metric value when zero
This commit is contained in:
@@ -33,7 +33,7 @@ default:
|
||||
$route = $cell[0];
|
||||
$gateway = $cell[2];
|
||||
if ($route=='default') $gateway .= " via {$cell[4]}";
|
||||
$metric = '1';
|
||||
$metric = '0';
|
||||
for ($i=5; $i<count($cell); $i++) if ($cell[$i]=='metric') {$metric = $cell[$i+1]; break;}
|
||||
echo "<tr><td>IPv4</td><td>$route</td><td>$gateway</td><td>$metric</td><td style='text-align:center'><a href='#' onclick='deleteRoute(\"$gateway\",\"$route\",\"$metric\");return false'><i class='fa fa-trash-o'></i></a></td></tr>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user