Skip to content

Commit

Permalink
port forward only for real device
Browse files Browse the repository at this point in the history
  • Loading branch information
saikrishna321 committed Apr 8, 2024
1 parent e11adeb commit 9178deb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ class DevicePlugin extends BasePlugin {
}
},
);
if (caps.alwaysMatch['df:portForward'] !== undefined) {
if (caps.alwaysMatch['df:portForward'] !== undefined && device.realDevice) {
log.info(`📱 Forwarding ios port to real device ${device.udid} for manual interaction`);
await DEVICE_CONNECTIONS_FACTORY.requestConnection(device.udid, device.mjpegServerPort, {
usePortForwarding: true,
Expand Down

0 comments on commit 9178deb

Please # to comment.