diff --git a/v2/pkg/input/input.go b/v2/pkg/input/input.go index 422fdcf5..8fdf6685 100644 --- a/v2/pkg/input/input.go +++ b/v2/pkg/input/input.go @@ -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