hotfix: connection refused
showing as valid
This commit is contained in:
parent
b887c6e618
commit
223a10bf9b
2
main.go
2
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)
|
||||
|
|
Loading…
Reference in a new issue