Go read /etc/hosts with net.lookupStaticHost() Posted by michalmatczuk on Friday February 23, 2024 @10:56AM from the github.com dept. https://github.com/saucelabs/forwarder/commit/0b35f78a396959079fdb475aa16106ec16f09807 ( 1 comment | 2 points | on HN )
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.