Skip to content

Commit

Permalink
add missing state in osx tcp status
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Mar 21, 2024
1 parent 84f026d commit 580451b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/snclient/check_connections_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (l *CheckConnections) getNetstat(ctx context.Context, name string) ([]int64
switch cols[5] {
case "CLOSE_WAIT":
counter[tcpCloseWait]++
case "CLOSED":
case "CLOSED", "CLOSING":
counter[tcpClose]++
case "ESTABLISHED":
counter[tcpEstablished]++
Expand Down

0 comments on commit 580451b

Please sign in to comment.