mirror of
https://github.com/projectdiscovery/httpx.git
synced 2024-09-19 05:17:33 +03:00
Merge pull request #1541 from projectdiscovery/orig-1469
Fork of https://github.com/projectdiscovery/httpx/pull/1469 - strict resolvers
This commit is contained in:
commit
011a9698cc
@ -43,7 +43,13 @@ type HTTPX struct {
|
||||
func New(options *Options) (*HTTPX, error) {
|
||||
httpx := &HTTPX{}
|
||||
fastdialerOpts := fastdialer.DefaultOptions
|
||||
fastdialerOpts.EnableFallback = true
|
||||
|
||||
// if the user specified any custom resolver disables system resolvers and syscall lookup fallback
|
||||
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