From f5131dc333790eed71d4c66aa4c3dc1f42b20953 Mon Sep 17 00:00:00 2001 From: Lomanic Date: Thu, 5 Sep 2019 23:18:29 +0200 Subject: [PATCH] [process][windows] Implement Connections() using net.ConnectionsPid() --- process/process_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process/process_windows.go b/process/process_windows.go index f78c9be..283c3ec 100644 --- a/process/process_windows.go +++ b/process/process_windows.go @@ -640,7 +640,7 @@ func (p *Process) Connections() ([]net.ConnectionStat, error) { } func (p *Process) ConnectionsWithContext(ctx context.Context) ([]net.ConnectionStat, error) { - return nil, common.ErrNotImplementedError + return net.ConnectionsPidWithContext(ctx, "all", p.Pid) } func (p *Process) ConnectionsMax(max int) ([]net.ConnectionStat, error) {