From 3889d2c558da3336dc602f7fa8d35c5a12da1dbe Mon Sep 17 00:00:00 2001 From: Joe Ayers Date: Sat, 18 May 2019 11:21:15 -0700 Subject: [PATCH] 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. --- files/www/cgi-bin/mesh | 1 + 1 file changed, 1 insertion(+) diff --git a/files/www/cgi-bin/mesh b/files/www/cgi-bin/mesh index 9364555a..15656c96 100755 --- a/files/www/cgi-bin/mesh +++ b/files/www/cgi-bin/mesh @@ -435,6 +435,7 @@ foreach $ip (keys %hosts) $tactical = $hosts{$ip}{tactical} ? " / " . $hosts{$ip}{tactical} : ""; $etx = sprintf "%.2f", $hosts{$ip}{etx}; next if ($etx > 50 ); + next if ($etx == 0 ); $rows{$host} = sprintf "%s", $host, $host . $tactical;