Remove local.mesh suffix from Local Hosts hostname in newui (#108)

This commit is contained in:
Steve AB7PA 2021-05-20 18:46:29 -07:00 committed by GitHub
parent 7633d10382
commit 1c76248765
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 6 deletions

View File

@ -525,6 +525,7 @@ function model.getLocalHosts()
}
local index = 0
for hostname in entries:gmatch("%S+") do
hostname = string.gsub(hostname,".local.mesh$","")
entry["hostnames"][index] = hostname
index = index + 1
end