Clean up DNS transports

This commit is contained in:
世界
2026-04-23 01:33:38 +08:00
parent 65dedd3a6f
commit ead1b6688f
9 changed files with 736 additions and 1031 deletions

View File

@@ -68,6 +68,8 @@ type DNSTransport interface {
Type() string
Tag() string
Dependencies() []string
// Reset closes the transport's existing connections so later requests use fresh connections.
// Exchanges that are currently using those connections may fail.
Reset()
Exchange(ctx context.Context, message *dns.Msg) (*dns.Msg, error)
}