Refactor: refactor find process (#2781)
This commit is contained in:
@ -2,7 +2,7 @@ package process
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"net"
|
||||
"net/netip"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -16,6 +16,6 @@ const (
|
||||
UDP = "udp"
|
||||
)
|
||||
|
||||
func FindProcessName(network string, srcIP net.IP, srcPort int) (string, error) {
|
||||
return findProcessName(network, srcIP, srcPort)
|
||||
func FindProcessPath(network string, from netip.AddrPort, to netip.AddrPort) (string, error) {
|
||||
return findProcessPath(network, from, to)
|
||||
}
|
||||
|
Reference in New Issue
Block a user