Skip to content

Commit

Permalink
fix: Respect the remote port capability for real devices (#2417)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach authored Jun 26, 2024
1 parent 9a793b1 commit f2d80da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/commands/web.js
Original file line number Diff line number Diff line change
Expand Up @@ -869,9 +869,9 @@ const extensions = {
*/
getWdaLocalhostRoot() {
const remotePort =
(this.opts.wdaRemotePort
?? this.wda?.url?.port
?? this.opts.wdaLocalPort)
((this.isRealDevice() ? this.opts.wdaRemotePort : null)
?? this.wda?.url?.port
?? this.opts.wdaLocalPort)
|| 8100;
return `http://127.0.0.1:${remotePort}`;
},
Expand Down

0 comments on commit f2d80da

Please sign in to comment.