From 0514447356a31cd45287c1aaeb780cb9c5b0bec7 Mon Sep 17 00:00:00 2001 From: Esonhugh Date: Thu, 21 Mar 2024 17:35:39 +0800 Subject: [PATCH] update: fix bug of axfr bug. --- pkg/scanner/axfr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/scanner/axfr.go b/pkg/scanner/axfr.go index 5175478..c5bef3d 100644 --- a/pkg/scanner/axfr.go +++ b/pkg/scanner/axfr.go @@ -21,7 +21,7 @@ func DumpAXFR(target string, dnsServer string) ([]define.Record, error) { for rr := range ch { if rr.Error != nil { log.Debugf("Error: %v", rr.Error) - continue + return records, rr.Error } for _, r := range rr.RR { records = append(records, define.Record{