Go read /etc/hosts with net.lookupStaticHost()
1–2 of 2 posts
Re: Go read /etc/hosts with net.lookupStaticHost()
#2We need to check if given domain name points to localhost.
Previously we used resolver with custom dialer that never dials connection but this resulted in unexpected allocations :/
This patch links net.lookupStaticHost(), clean and simple.