mirror of https://github.com/daffainfo/nuclei.git
fix url panic (#3092)
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…
Reference in New Issue