Better fix for #1451, adds target IP address to output, ref #1088

This commit is contained in:
erwanlr
2020-02-11 16:28:59 +00:00
parent 6b241ce9b3
commit e2d48bedd9
4 changed files with 10 additions and 12 deletions

View File

@@ -66,17 +66,14 @@ module WPScan
end
# @return [ Hash ]
# Those params can not be overriden by CLI options, except for the cache_ttl
# @note Those params can not be overriden by CLI options
def self.default_request_params
@default_request_params ||= {
timeout: 30,
connecttimeout: 15,
cache_ttl: Browser.instance.cache_ttl,
Browser.instance.default_connect_request_params.merge(
headers: {
'User-Agent' => Browser.instance.default_user_agent,
'Authorization' => "Token token=#{token}"
}
}
)
end
end
end