mirror of
https://github.com/projectdiscovery/httpx.git
synced 2024-11-28 13:04:02 +03:00
Do not use local resolvers when given resolver input
This commit is contained in:
parent
78179ca7b1
commit
f3a6eadfce
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user