trojan-gfw / igniter

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

editable Clash rules #114

Open jiashooter opened 4 years ago

jiashooter commented 4 years ago

How to change rules of Clash when I want to make some non-mainland of China addresses connected directly?

ghost commented 4 years ago

如果有root权限的话, 可以编辑/data/data/io.github.trojan_gfw.igniter/files/config.yaml

wongsyrone commented 4 years ago

If someone wants to edit clash rules by himself, he must know how clash, go-tun2socks cooperates, since some rules will NOT take effect.

wongsyrone commented 4 years ago

BTW, I recommend when implementing this feature, we expose the rules part only. Simply copy & paste the whole config file won't work for this scenario.

wongsyrone commented 4 years ago

I will change how Clash works in the future, may or may not follow upstream changes, just cherry-pick some critical bugfixes. As far as I can tell, we only need SOCKS5 redirecting and rule matching, user rules may or may not function well. We have to educate users about what they should put in the file and how they write rules. It could mess up when users do something wrong they didn't expect and complain in the Issues

oasiscifr commented 4 years ago

https://github.com/v2ray/domain-list-community

calidion commented 1 year ago

@jiashooter

You request is enabled with commit: https://github.com/low-api-support-trojan/igniter/commit/e70b5fb79ff8cf69de78718053d9d7e7d25d1f19

@wongsyrone

if it is possible, please add me to the team. I have a lot changes made, I will integrate things into master when all functions are ready and tested.

calidion commented 1 year ago

https://github.com/low-api-support-trojan/igniter/releases/tag/las-v0.2.1

released with clash file editing support.