Skip to content

Commit

Permalink
update: precheck of dump wildcard
Browse files Browse the repository at this point in the history
  • Loading branch information
Esonhugh committed Apr 15, 2024
1 parent dc8f943 commit 76ee0ec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/wildcard/wildcard.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ var WildCardCmd = &cobra.Command{
log.Warn("zone can't empty")
return
}
printer.PrintResult(scanner.DumpWildCard(command.Opts.Zone), command.Opts.OutputFile)
record := scanner.DumpWildCard(command.Opts.Zone)
if record == nil || len(record) == 0 {
log.Warnf("DumpWildCard Found Nothing")
return
}
printer.PrintResult(record, command.Opts.OutputFile)
},
}

0 comments on commit 76ee0ec

Please sign in to comment.