mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
This commit is contained in:
1 parent
6a7fc56a5e
commit
43552b60c9
17 files changed
+504
-126
No files matched your search
+3
-1
@@ -143,7 +143,9 @@ func (c *Client) extractAnswer(resp *Message) ([]string, int) {
|
||||
if answer.TYPE == QTypeA || answer.TYPE == QTypeAAAA {
|
||||
if answer.IP.IsValid() && !answer.IP.IsUnspecified() {
|
||||
for _, h := range c.handlers {
|
||||
h(resp.Question.QNAME, answer.IP)
|
||||
if err := h(resp.Question.QNAME, answer.IP); err != nil {
|
||||
log.F("[dns] answer handler error for %s/%s: %s", resp.Question.QNAME, answer.IP, err)
|
||||
}
|
||||
}
|
||||
ips = append(ips, answer.IP.String())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user