Skip to content

Commit

Permalink
Push for v0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinTimperio committed Mar 11, 2021
1 parent b4beba1 commit dd3fe83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import (

func main() {
fastscan := true
scan := gomap.ScanRange(fastscan)
gomap.PrintRangeResults(scan)
scan := gomap.ScanRange(fastscan)
fmt.Printf(scan.String())
}

```
Expand Down
2 changes: 1 addition & 1 deletion gomap_scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func scanPort(resultChannel chan<- portResult, protocol, hostname, service strin
// but is a reasonable solution for this application
result := portResult{Port: port, Service: service}
address := hostname + ":" + strconv.Itoa(port)
conn, err := net.DialTimeout(protocol, address, 5*time.Second)
conn, err := net.DialTimeout(protocol, address, 3*time.Second)
if err != nil {
result.State = false
resultChannel <- result
Expand Down

0 comments on commit dd3fe83

Please sign in to comment.