mirror of https://github.com/aredn/aredn.git
Merge branch 'MeshStatBugFix' into develop
This commit is contained in:
commit
88495ae0de
|
@ -118,6 +118,10 @@ foreach(`cat /etc/hosts`)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if ( $name !~ /\./ )
|
||||||
|
{
|
||||||
|
$name="${name}.local.mesh";
|
||||||
|
}
|
||||||
push @{$localhosts{$my_ip}{hosts}}, $name;
|
push @{$localhosts{$my_ip}{hosts}}, $name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -153,6 +157,10 @@ foreach(`cat /var/run/hosts_olsr 2>/dev/null`)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if ( $name !~ /\./ )
|
||||||
|
{
|
||||||
|
$name="${name}.local.mesh";
|
||||||
|
}
|
||||||
push @{$hosts{$originator}{hosts}}, $name;
|
push @{$hosts{$originator}{hosts}}, $name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue