- Introduce
ClientDNSConfigAPI to bypass DNS lookup. - DNS lookup can be cancelled with Context.
apis/common.ResolveTCPAddr and apis/common.ResolveUDPAddr function now need to pass a Context argument.
- 在 API 中引入
ClientDNSConfig以跳过 DNS 查询。 - 允许通过 Context 取消 DNS 查询。
apis/common.ResolveTCPAddr 和 apis/common.ResolveUDPAddr 函数现在需要传入 Context 参数。