Skip to content

Commit

Permalink
[openbsd] set ConnectionsPid to return NotImplemented
Browse files Browse the repository at this point in the history
netstat on OpenBSD doesn't provide PID information for open ports
  • Loading branch information
tuftedocelot committed Dec 19, 2024
1 parent 2a70d27 commit 88d6de0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions net/net_openbsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ func Connections(kind string) ([]ConnectionStat, error) {
return ConnectionsWithContext(context.Background(), kind)
}

func ConnectionsPid(kind string, pid int32) ([]ConnectionStat, error) {
return nil, common.ErrNotImplementedError
}

func ConnectionsWithContext(ctx context.Context, kind string) ([]ConnectionStat, error) {
var ret []ConnectionStat

Expand Down

0 comments on commit 88d6de0

Please sign in to comment.