Skip to content

Commit

Permalink
Merge pull request #3 from binary1985/master
Browse files Browse the repository at this point in the history
Sleep
  • Loading branch information
binary1985 committed Nov 22, 2016
2 parents 4a469d8 + cfe9e4b commit 1c03bf6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ import (
"strconv"
"strings"
"sync"
"time"

"github.com/lair-framework/api-server/client"
"github.com/lair-framework/go-lair"
"github.com/tomsteele/go-shodan"
)

const (
version = "1.0.1"
version = "1.0.2"
tool = "shodan"
osWeight = 50
usage = `
Expand Down Expand Up @@ -179,6 +180,7 @@ func main() {
for i := 0; i < 10; i++ {
go func(s shodan.Client) {
for ip := range ipChan {
time.Sleep(7*time.Second)
host, err := s.Host(ip, url.Values{})
if err != nil {
log.Printf("Error: Error returned from shodan for %s. Error %s", ip, err.Error())
Expand Down

0 comments on commit 1c03bf6

Please sign in to comment.