From dd3fe838688ef2440479955791105e1cea35d43c Mon Sep 17 00:00:00 2001 From: Justin Timperio Date: Thu, 11 Mar 2021 13:44:43 -0500 Subject: [PATCH] Push for v0.2 --- README.md | 4 ++-- gomap_scan.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7bd061e..e7e3c3c 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,8 @@ import ( func main() { fastscan := true - scan := gomap.ScanRange(fastscan) - gomap.PrintRangeResults(scan) + scan := gomap.ScanRange(fastscan) + fmt.Printf(scan.String()) } ``` diff --git a/gomap_scan.go b/gomap_scan.go index b4e9f02..608565e 100644 --- a/gomap_scan.go +++ b/gomap_scan.go @@ -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