TE
科技回声
首页
24小时热榜
最新
最佳
问答
展示
工作
中文
GitHub
Twitter
首页
Go read /etc/hosts with net.lookupStaticHost()
3 点
作者
michalmatczuk
大约 1 年前
1 comment
michalmatczuk
大约 1 年前
We need to check if given domain name points to localhost.<p>Previously we used resolver with custom dialer that never dials connection but this resulted in unexpected allocations :/<p>This patch links net.lookupStaticHost(), clean and simple.