hotfix: connection refused
showing as valid
This commit is contained in:
parent
b887c6e618
commit
223a10bf9b
1 changed files with 1 additions and 1 deletions
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")
|
cmd := exec.Command("nc", "-zv", "devraza.giize.com", i, "-w", "1")
|
||||||
out, _ := cmd.CombinedOutput()
|
out, _ := cmd.CombinedOutput()
|
||||||
|
|
||||||
if len(strings.Split(string(out), " ")) < 12 {
|
if len(strings.Split(string(out), " ")) == 8 {
|
||||||
m.outputs = append(m.outputs, 1)
|
m.outputs = append(m.outputs, 1)
|
||||||
} else {
|
} else {
|
||||||
m.outputs = append(m.outputs, 0)
|
m.outputs = append(m.outputs, 0)
|
||||||
|
|
Loading…
Reference in a new issue