diff --git a/common/httpx/httpx.go b/common/httpx/httpx.go index 46a9f51..31e471e 100644 --- a/common/httpx/httpx.go +++ b/common/httpx/httpx.go @@ -43,7 +43,13 @@ type HTTPX struct { func New(options *Options) (*HTTPX, error) { httpx := &HTTPX{} fastdialerOpts := fastdialer.DefaultOptions - fastdialerOpts.EnableFallback = true + + // HTTPX should only rely on system resolvers if resolvers are not explicitly specified. + if len(options.Resolvers) != 0 { + fastdialerOpts.ResolversFile = false + fastdialerOpts.EnableFallback = false + } + fastdialerOpts.Deny = options.Deny fastdialerOpts.Allow = options.Allow fastdialerOpts.WithDialerHistory = true