multiple updates

This commit is contained in:
2023-12-09 14:21:28 -06:00
parent a11f92745d
commit 881c11b910
23 changed files with 721 additions and 433 deletions

View File

@ -3,17 +3,13 @@ package main
import (
"bufio"
"bytes"
"log"
"regexp"
"strings"
"time"
"github.com/asaskevich/govalidator"
)
func parseSimple(data []byte) []string {
defer timeTrack(time.Now(), "parseSimple")
var domains []string
// convert data to reader for line-by-line reading
@ -42,7 +38,7 @@ func parseSimple(data []byte) []string {
if govalidator.IsDNSName(lineItems[0]) {
domains = append(domains, lineItems[0])
} else {
log.Printf("[TRACE] Domain is not valid: %s\n", lineItems[0])
cfg.Log.Debug("host invalid", "host", lineItems[0])
}
}
}