trojan-gfw / igniter

A trojan client for Android (UNDER CONSTRUCTION).
GNU General Public License v3.0
3.33k stars 728 forks source link

Proxy only mode (without vpn interface) #23

Open ccaapton opened 4 years ago

ccaapton commented 4 years ago

Currently, compiling trojan on termux is a big pain and give a lot of errors. Would you mind adding a "proxy only mode" to igniter? It does not have any vpn interface or tun2sock stuff, just trojan as a socks5 proxy listening on some localhost port. If so, termux users no longer need to compile trojan themselves.

GreaterFire commented 4 years ago

@ccaapton Good Idea. Will do. One of the major changes is to keep trojan running in the background as a service opposed to a VPN service.

ccaapton commented 4 years ago

@wongsyrone Would you mind adding this feature?

wongsyrone commented 4 years ago

Currently, no plan for this. Anyone can implement it and send PR.

okudayukiko commented 3 years ago

對於沒有root的手機,只能用VPN模式。

uJZk commented 3 years ago

对于没有root的手机,只能用VPN模式。

并不是,参考 clash for android 以及 ClashA

rurirei commented 3 years ago

simply start a Foreground Service to start Tun2socksService. ... to done this.

example: https://github.com/2dust/v2rayNG/blob/master/V2rayNG/app/src/main/kotlin/com/v2ray/ang/service/V2RayProxyOnlyService.kt or https://github.com/rurirei/Kitsunebi/blob/go/app/src/main/java/io/github/rurirei/v2rayng/service/V2RayProxyService.kt

@ccaapton Good Idea. Will do. One of the major changes is to keep trojan running in the background as a service opposed to a VPN service.

calidion commented 1 year ago

You can take a look at this igniter variant:

https://github.com/low-api-support-trojan/igniter

Proxy only will soon be implemented as well as support that all apps will be excluded by default and auto start after rebooting.