mirror of https://github.com/aredn/aredn.git
bugfix: Mesh status missing owning host of service advertisement
Mesh status will show service entries of a remote mesh node at the top with 0 ETX value. The owning mesh hostname displays blank across the mesh network. The root cause is OLSR not propagating the node's hostname due to the admin assigning a conflicting/duplicate hostname. These services will no longer show in mesh status.
This commit is contained in:
parent
3ad13fd500
commit
3889d2c558
|
@ -435,6 +435,7 @@ foreach $ip (keys %hosts)
|
||||||
$tactical = $hosts{$ip}{tactical} ? " / " . $hosts{$ip}{tactical} : "";
|
$tactical = $hosts{$ip}{tactical} ? " / " . $hosts{$ip}{tactical} : "";
|
||||||
$etx = sprintf "%.2f", $hosts{$ip}{etx};
|
$etx = sprintf "%.2f", $hosts{$ip}{etx};
|
||||||
next if ($etx > 50 );
|
next if ($etx > 50 );
|
||||||
|
next if ($etx == 0 );
|
||||||
|
|
||||||
$rows{$host} = sprintf "<tr><td valign=top><nobr><a href='http://%s:8080/'>%s</a>", $host, $host . $tactical;
|
$rows{$host} = sprintf "<tr><td valign=top><nobr><a href='http://%s:8080/'>%s</a>", $host, $host . $tactical;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue