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]['neighborLinkQuality']=v['neighborLinkQuality']
|
||||
if remhost ~= nil then
|
||||
host = string.gsub(remhost,"dtdlink%.", "")
|
||||
host = string.lower(remhost)
|
||||
end
|
||||
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.lower(host)
|
||||
info[remip]['hostname']=host
|
||||
else
|
||||
info[remip]['hostname']=remip
|
||||
|
|
Loading…
Reference in New Issue