Fix DNS transports

This commit is contained in:
世界 committed 2026-01-17 05:48:41 +08:00
1 parent 4e94a64dcc
commit aa8dd6e44f
18 files changed
+754 -220

No files matched your search

+10
View File
@@ -110,6 +110,16 @@ func (t *Transport) Close() error {
return nil
}
func (t *Transport) Reset() {
t.linkAccess.RLock()
defer t.linkAccess.RUnlock()
for _, servers := range t.linkServers {
for _, server := range servers.Servers {
server.Reset()
}
}
}
func (t *Transport) updateTransports(link *TransportLink) error {
t.linkAccess.Lock()
defer t.linkAccess.Unlock()