v3.26.0

enfein/mieruv3.26.0Dec 1, 2025by enfein

AI Summary

This release enhances DNS handling by introducing a bypass API and Context cancellation support, while updating existing API signatures to require Context arguments.

Key Highlights

  • Introduction of `ClientDNSConfig` API
  • DNS lookup cancellation support via Context
  • Updated API signatures for ResolveTCPAddr and ResolveUDPAddr

Breaking Changes

  • API signature change: `ResolveTCPAddr` and `ResolveUDPAddr` now require a Context argument

New Features

  • ClientDNSConfig API
  • Context cancellation for DNS

Full Release Notes

1. Introduce `ClientDNSConfig` API to bypass DNS lookup.
2. DNS lookup can be cancelled with Context.

`apis/common.ResolveTCPAddr` and `apis/common.ResolveUDPAddr` function now need to pass a Context argument.

---

1. 在 API 中引入 `ClientDNSConfig` 以跳过 DNS 查询。
2. 允许通过 Context 取消 DNS 查询。

`apis/common.ResolveTCPAddr` 和 `apis/common.ResolveUDPAddr` 函数现在需要传入 Context 参数。