From 580451b86a6da875c5e1defff4fcda9e890429ea Mon Sep 17 00:00:00 2001 From: Sven Nierlein Date: Thu, 21 Mar 2024 23:11:42 +0100 Subject: [PATCH] add missing state in osx tcp status --- pkg/snclient/check_connections_darwin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/snclient/check_connections_darwin.go b/pkg/snclient/check_connections_darwin.go index 22413f6..45ce910 100644 --- a/pkg/snclient/check_connections_darwin.go +++ b/pkg/snclient/check_connections_darwin.go @@ -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]++