Fix hosts DNS server

This commit is contained in:
k9982874
2025-07-08 13:12:24 +08:00
committed by 世界
parent 32873d06bc
commit 0c523980ff
5 changed files with 24 additions and 10 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ func (f *File) Lookup(name string) []netip.Addr {
f.access.Lock()
defer f.access.Unlock()
f.update()
return f.byName[name]
return f.byName[dns.CanonicalName(name)]
}
func (f *File) update() {