mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-07-27 09:11:49 +03:00
Fix DNS transports
This commit is contained in:
@@ -108,6 +108,13 @@ func (t *Transport) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (t *Transport) Reset() {
|
||||
t.transportLock.Lock()
|
||||
t.updatedAt = time.Time{}
|
||||
t.servers = nil
|
||||
t.transportLock.Unlock()
|
||||
}
|
||||
|
||||
func (t *Transport) Exchange(ctx context.Context, message *mDNS.Msg) (*mDNS.Msg, error) {
|
||||
servers, err := t.fetch()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user