codeskyblue / tidevice3

wrapper for pymobiledevice3 to make it more easy to use.
MIT License
176 stars 33 forks source link

runwda port passed in wrong order to UsbmuxTcpForwarder #14

Open yehe01 opened 4 months ago

yehe01 commented 4 months ago

In runwda, UsbmuxTcpForwarder(service_provider.udid, dst_port, src_port) should be UsbmuxTcpForwarder(service_provider.udid, src_port, dst_port)

Based on the cmd doc: @click.option("--src-port", default=8100, help="WebDriverAgent listen port") @click.option("--dst-port", default=8100, help="local listen port")

When i run t3 runwda --bundle-id xxx --src-port 8100 --dst-port 50002 i expect the traffic from my local mac machine at 50002 to be forwarded to the connected mobile device. But it starts listening to 8100 on my mac.