shadowsocks-android icon indicating copy to clipboard operation
shadowsocks-android copied to clipboard

Is it possible to specify automatic update of acl address

Open jan-bar opened this issue 3 years ago • 4 comments

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.

jan-bar avatar May 28 '22 04:05 jan-bar

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

dev4u avatar May 28 '22 04:05 dev4u

@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.

jan-bar avatar May 28 '22 04:05 jan-bar

没有,那是一个定值。

dev4u avatar Jun 08 '22 22:06 dev4u

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

jan-bar avatar Jun 08 '22 23:06 jan-bar