Slightly better output

This commit is contained in:
Miek Gieben 2012-01-28 14:11:01 +01:00
parent be6d91b826
commit 71384569e1
1 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,9 @@ func main() {
c := dns.NewClient()
prints, _ := fingerPrintFromFile("data/q")
results := make([]*fingerprint, 0)
if *report {
fmt.Printf("# Fingerprint of <Nameserver> <version>\n# Supplied by <Name> on <Date>\n#\n")
}
for _, f := range prints {
f1 := probe(c, nameserver, f)
results = append(results, f1)