multiple updates
This commit is contained in:
@ -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])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user