diff --git a/cmd/portcheck/main.go b/cmd/portcheck/main.go index 8f53f79..c0c6712 100644 --- a/cmd/portcheck/main.go +++ b/cmd/portcheck/main.go @@ -103,7 +103,8 @@ func main() { continue } - if err = checkPort(localAddr, port, dialTimeout); err == nil { + err = checkPort(localAddr, port, dialTimeout) + if err == nil { continue }