Hacker News new | past | comments | ask | show | jobs | submit login
Go read /etc/hosts with net.lookupStaticHost() (github.com/saucelabs)
3 points by michalmatczuk 68 days ago | hide | past | favorite | 1 comment



We 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: