mirror of https://github.com/aredn/aredn.git
Fix regex for current neighbor midxx.hostname (#110)
This commit is contained in:
parent
79a57a0021
commit
10ff6f512f
|
@ -71,12 +71,12 @@ function model.getCurrentNeighbors(RFinfo)
|
||||||
info[remip]['linkQuality']=v['linkQuality']
|
info[remip]['linkQuality']=v['linkQuality']
|
||||||
info[remip]['neighborLinkQuality']=v['neighborLinkQuality']
|
info[remip]['neighborLinkQuality']=v['neighborLinkQuality']
|
||||||
if remhost ~= nil then
|
if remhost ~= nil then
|
||||||
host = string.gsub(remhost,"dtdlink%.", "")
|
host = string.lower(remhost)
|
||||||
end
|
end
|
||||||
if host ~= nil then
|
if host ~= nil then
|
||||||
host = string.gsub(host,"mid%d.", "")
|
host = string.gsub(host,"mid%d+.", "")
|
||||||
|
host = string.gsub(host,"dtdlink%.", "")
|
||||||
host = string.gsub(host,".local.mesh$","")
|
host = string.gsub(host,".local.mesh$","")
|
||||||
host = string.lower(host)
|
|
||||||
info[remip]['hostname']=host
|
info[remip]['hostname']=host
|
||||||
else
|
else
|
||||||
info[remip]['hostname']=remip
|
info[remip]['hostname']=remip
|
||||||
|
|
Loading…
Reference in New Issue