This commit is contained in:
parent
faa8ac55f2
commit
323a99b652
1 changed files with 1 additions and 6 deletions
|
@ -12,11 +12,6 @@ import (
|
|||
"github.com/miekg/dns"
|
||||
)
|
||||
|
||||
const (
|
||||
tcp = "tcp"
|
||||
udp = "udp"
|
||||
)
|
||||
|
||||
// CreateQuery creates a DNS query from the options given.
|
||||
// It sets query flags and EDNS flags from the respective options.
|
||||
func CreateQuery(opts util.Options) (util.Response, error) {
|
||||
|
@ -140,7 +135,7 @@ func CreateQuery(opts util.Options) (util.Response, error) {
|
|||
|
||||
resolver, err := resolvers.LoadResolver(opts)
|
||||
if err != nil {
|
||||
return util.Response{}, err
|
||||
return util.Response{}, fmt.Errorf("unable to load resolvers: %v", err)
|
||||
}
|
||||
|
||||
opts.Logger.Info("Query successfully loaded")
|
||||
|
|
Loading…
Reference in a new issue