From 223a10bf9bf59c9f1cf9c7afd53c5c8aee7f2c24 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Fri, 13 Dec 2024 15:03:01 +0000 Subject: [PATCH] hotfix: `connection refused` showing as valid --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 29071ba..0b347dc 100644 --- a/main.go +++ b/main.go @@ -54,7 +54,7 @@ func (m model) Update(message tea.Msg) (tea.Model, tea.Cmd) { cmd := exec.Command("nc", "-zv", "devraza.giize.com", i, "-w", "1") out, _ := cmd.CombinedOutput() - if len(strings.Split(string(out), " ")) < 12 { + if len(strings.Split(string(out), " ")) == 8 { m.outputs = append(m.outputs, 1) } else { m.outputs = append(m.outputs, 0)