Fixed the shodan source a bit

master
Ice3man543 2019-12-05 15:42:32 +05:30
parent 72be49a73c
commit 78f6f2069d
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ func (s *Source) Run(ctx context.Context, domain string, session *subscraping.Se
}
resp.Body.Close()
if response.Error != "" {
if response.Error != "" || len(response.Matches) == 0 {
close(results)
return
}