Skip to content

Commit bbab709

Browse files
committed
fixed Unable to update, update error reported. #92 2022-08-18
1 parent 15ee6f6 commit bbab709

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/naabu/v2/pkg/runner/validate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func (options *Options) validateOptions() error {
2727
// Check if Host, list of domains, or stdin info was provided.
2828
// If none was provided, then return.
2929
//options.Host = []string{"http://192.168.0.111:8000"}
30-
if options.Host == nil && options.HostsFile == "" && !options.Stdin && len(flag.Args()) == 0 {
30+
if !options.Update && options.Host == nil && options.HostsFile == "" && !options.Stdin && len(flag.Args()) == 0 {
3131
return errNoInputList
3232
}
3333

0 commit comments

Comments
 (0)