Skip to content

Commit

Permalink
fix: Use a common resolverOpts
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-karan committed Dec 29, 2020
1 parent 357c6cd commit 2505910
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/doggo/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ func (hub *Hub) loadResolvers() error {
for _, ns := range hub.Nameservers {
if ns.Type == DOHResolver {
hub.Logger.Debug("initiating DOH resolver")
rslvr, err := resolvers.NewDOHResolver(ns.Address, resolvers.Options{
Timeout: hub.QueryFlags.Timeout * time.Second,
})
rslvr, err := resolvers.NewDOHResolver(ns.Address, resolverOpts)
if err != nil {
return err
}
Expand Down

0 comments on commit 2505910

Please sign in to comment.