mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
redir, dns: IncFailures on non-timeout errors (#133)
This commit is contained in:
1 parent
c2d9c67214
commit
22e0576b53
6 files changed
+40
-12
No files matched your search
@@ -175,6 +175,9 @@ func (c *Client) exchange(qname string, reqBytes []byte, preferTCP bool) (
|
||||
log.F("[dns] error in resolving %s, failed to exchange with server %v: %v", qname, server, err)
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
c.proxy.Record(dialer, false)
|
||||
}
|
||||
return server, network, dialer.Addr(), respBytes, err
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user