Fix hosts DNS server

This commit is contained in:
k9982874
2025-03-10 13:57:59 +08:00
committed by 世界
parent 8a9e07f3dc
commit db9a94de8a
5 changed files with 24 additions and 10 deletions

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() {