mirror of https://github.com/aredn/aredn.git
Remove local.mesh suffix from Local Hosts hostname in newui (#108)
This commit is contained in:
parent
7633d10382
commit
1c76248765
|
@ -144,9 +144,9 @@ function model.getArednAlert()
|
||||||
afile:close()
|
afile:close()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if #alert~=0 then return alert
|
if #alert~=0 then return alert
|
||||||
else return ""
|
else return ""
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
@ -162,9 +162,9 @@ function model.getLocalAlert()
|
||||||
afile:close()
|
afile:close()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if #alert~=0 then return alert
|
if #alert~=0 then return alert
|
||||||
else return ""
|
else return ""
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -525,6 +525,7 @@ function model.getLocalHosts()
|
||||||
}
|
}
|
||||||
local index = 0
|
local index = 0
|
||||||
for hostname in entries:gmatch("%S+") do
|
for hostname in entries:gmatch("%S+") do
|
||||||
|
hostname = string.gsub(hostname,".local.mesh$","")
|
||||||
entry["hostnames"][index] = hostname
|
entry["hostnames"][index] = hostname
|
||||||
index = index + 1
|
index = index + 1
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue