go-ios icon indicating copy to clipboard operation
go-ios copied to clipboard

Agent mode with optional tunnel type (user or kernel)

Open stoktamisoglu opened this issue 11 months ago • 3 comments

Is your feature request related to a problem? Please describe. Experimental agent mode with ENABLE_GO_IOS_AGENT=yes strats a kernel mode tunnel. It is necessary to give an option to start the tunnel in userspace.

If there is no specific reason to stay in experimental mode, we can also refactor the code to make it a feature.

Describe the solution you'd like This is open to discussion. The easiest way may be renaming the environment variable something like ENABLE_GO_IOS_AGENT_WITH and the values might be "user" or "kernel". Then the code will handle to start appropriate tunnel type.

Describe alternatives you've considered It may be part of options but this may require a lot of refactoring work.

Additional context This experimental mode is a good feature for multiple device test automation.

stoktamisoglu avatar Jan 06 '25 10:01 stoktamisoglu

I think better yet if just the environment variable itself contains the tunnel type like ENABLE_GO_IOS_AGENT=kernel and ENABLE_GO_IOS_AGENT=userspace, then it will probably be just a simple check in main.go

shamanec avatar Jan 06 '25 13:01 shamanec

I agree with you @shamanec. Will implement it and copy the PR here. Thx.

stoktamisoglu avatar Jan 06 '25 16:01 stoktamisoglu

Hi @shamanec , would you please review #544.

stoktamisoglu avatar Jan 08 '25 09:01 stoktamisoglu