mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 07:26:55 +08:00
feat: capture pcap file with PID/ProcName/bundleID
This commit is contained in:
@@ -449,12 +449,12 @@ func (c *lockdown) SyslogRelayService() (syslogRelay SyslogRelay, err error) {
|
||||
return
|
||||
}
|
||||
|
||||
func (c *lockdown) PcapdService() (pcapd Pcapd, err error) {
|
||||
func (c *lockdown) PcapdService(targetPID int, targetProcName string) (pcapd Pcapd, err error) {
|
||||
var innerConn InnerConn
|
||||
if innerConn, err = c._startService(libimobiledevice.PcapdServiceName, nil); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
pcapdClient := libimobiledevice.NewPcapdClient(innerConn)
|
||||
pcapdClient := libimobiledevice.NewPcapdClient(innerConn, targetPID, targetProcName)
|
||||
return newPcapdClient(pcapdClient), nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user