netset: add nftables set support
Build / Build (push) Has been cancelled

This commit is contained in:
nadoo committed 2026-07-15 23:41:21 +08:00
1 parent 6a7fc56a5e
commit 43552b60c9
17 files changed
+504 -126

No files matched your search

+3 -1
View File
@@ -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())
}