From 9530e0361a68b7b29759422de2cc5d220d19976e Mon Sep 17 00:00:00 2001 From: eiqnepm <86803173+eiqnepm@users.noreply.github.com> Date: Wed, 7 Feb 2024 21:46:54 +0000 Subject: [PATCH] Update main.go --- cmd/portcheck/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }