mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 04:35:24 +00:00
fix url panic (#3092)
This commit is contained in:
parent
91f6fdfb36
commit
af2aaacbc9
@ -100,7 +100,7 @@ func (h *Helper) convertInputToType(input string, inputType inputType, defaultPo
|
||||
if hasHost {
|
||||
return host
|
||||
}
|
||||
if isURL {
|
||||
if isURL && uri != nil {
|
||||
return uri.Hostname()
|
||||
}
|
||||
return input
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user