shadowsocks / shadowsocks-android

A shadowsocks client for Android
Other
35.23k stars 11.57k forks source link

Is it possible to specify automatic update of acl address #2893

Open jan-bar opened 2 years ago

jan-bar commented 2 years ago

I use custom rules, I actually add my configuration to an acl file by looking at the background configuration file.

I hope I can specify an ACL download address and use my ACL configuration completely.

Currently I compile the kcptun plugin by myself, let the plugin download my ACL at startup, and save it as bypass-lan-china.acl.

After testing, shadowsocks-android will also load bypass-lan-china.acl run on next boot.

image

I think I can do a function to directly download the prepared ACL file. My GET request will bring the md5 of the acl file in the http header, and the server will not be updated until the server check is inconsistent.

dev4u commented 2 years ago

可以参考这里的代码: https://github.com/shadowsocks/shadowsocks-android/blob/master/core/src/main/java/com/github/shadowsocks/acl/AclSyncer.kt

jan-bar commented 2 years ago

@dev4u Where is this configured in the software? Or do I resolve the shadowsocks.org domain name to my server?

I'm just making a suggestion, the way I'm using plugins works fine so far.

dev4u commented 2 years ago

没有,那是一个定值。

jan-bar commented 2 years ago

@dev4u 如果可以完全自定义acl,例如从存储里面选个文件,或者一个url下载完整的acl文件就很方便额。