启动参数-e USE_PORT:8111无效
Open
- Dominant language
- Python
- Stars
- 2.6k
- Forks
- 469
- PR merge metrics
- No merged PRs in 30d
Description
当我想在一台电脑上运行多台手机的wda时,我添加了-e USE_PORT:8111参数,但是启动tidevce的时候发现,
_wdaproxy.py文件,第52行
f"{self.udid}:8100}/HEALTH",
写死了端口是8100
52行改成
f"{self.udid}:{self._env['USE_PORT']}/HEALTH",
32行添加
if env['USE_PORT'] == None:
env['USE_PORT'] = 8100
才能正常运行
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in _wdaproxy.py at lines 32 and 52, then trace how USE_PORT is passed when tidevice starts. Verify that the configured port is used for the WDA health request and that the default remains 8100 when USE_PORT is absent; confirm the result by running multiple WDA instances on one computer.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, python
- Domain
- cli, mobile-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100