shadowsocks-libev: ACL support

Link: https://github.com/openwrt/packages/pull/20647
Signed-off-by: Kirill Fertikov <kirill.fertikov@gmail.com>
[indentation fix]
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
Kirill Fertikov 2023-04-22 00:48:21 +05:00 committed by Yousong Zhou
parent 9569c7c03f
commit d1ad585ca9
2 changed files with 6 additions and 3 deletions

View File

@ -14,7 +14,7 @@ include $(TOPDIR)/rules.mk
#
PKG_NAME:=shadowsocks-libev
PKG_VERSION:=3.3.5
PKG_RELEASE:=8
PKG_RELEASE:=9
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/shadowsocks/shadowsocks-libev/releases/download/v$(PKG_VERSION)

View File

@ -81,6 +81,7 @@ ss_xxx() {
[ -z "$mtu" ] || json_add_int mtu "$mtu"
[ -z "$timeout" ] || json_add_int timeout "$timeout"
[ -z "$user" ] || json_add_string user "$user"
[ -z "$acl" ] || json_add_string acl "$acl"
json_dump -i >"$confjson"
procd_open_instance "$cfgtype.$cfg"
@ -273,7 +274,8 @@ validate_server_section() {
}
validate_ss_local_section() {
validate_common_client_options_ ss_local "$1" "$2"
validate_common_client_options_ ss_local "$1" "$2" \
'acl:file'
}
validate_ss_redir_section() {
@ -307,7 +309,8 @@ validate_ss_server_section() {
'local_address:ipaddr' \
'local_ipv4_address:ip4addr' \
'local_ipv6_address:ip6addr' \
'bind_address:ipaddr'
'bind_address:ipaddr' \
'acl:file'
}
validate_ss_tunnel_section() {