Improve process searcher
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//go:build !(cgo && linux && !android)
|
||||
//go:build !linux || android
|
||||
|
||||
package process
|
||||
|
||||
@@ -7,6 +7,6 @@ import (
|
||||
"net/netip"
|
||||
)
|
||||
|
||||
func FindProcessInfo(searcher Searcher, ctx context.Context, network string, srcIP netip.Addr, srcPort int) (*Info, error) {
|
||||
return searcher.FindProcessInfo(ctx, network, srcIP, srcPort)
|
||||
func findProcessInfo(searcher Searcher, ctx context.Context, network string, source netip.AddrPort, destination netip.AddrPort) (*Info, error) {
|
||||
return searcher.FindProcessInfo(ctx, network, source, destination)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user