Merge pull request #759 from Lomanic/windows-process-connections

[process][windows] Implement Connections() using net.ConnectionsPid()
issue734
shirou 6 years ago committed by GitHub
commit 84e6215770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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) {

Loading…
Cancel
Save