Browse Source

shadowsocks-libev: support disable_sni for ss_server section

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
lilik-openwrt-22.03
Yousong Zhou 7 years ago
parent
commit
682b0c2be7
2 changed files with 9 additions and 3 deletions
  1. +1
    -1
      net/shadowsocks-libev/Makefile
  2. +8
    -2
      net/shadowsocks-libev/files/shadowsocks-libev.init

+ 1
- 1
net/shadowsocks-libev/Makefile View File

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


+ 8
- 2
net/shadowsocks-libev/files/shadowsocks-libev.init View File

@ -80,7 +80,11 @@ ss_mkjson_ss_local_conf() {
}
ss_mkjson_ss_redir_conf() {
ss_mkjson_server_conf
ss_mkjson_server_conf || return 1
[ "$disable_sni" = 0 ] && disable_sni=false || disable_sni=true
cat <<-EOF
${q}disable_sni${q}: $disable_sni,
EOF
}
ss_mkjson_ss_server_conf() {
@ -285,7 +289,9 @@ validate_ss_local_section() {
}
validate_ss_redir_section() {
validate_common_client_options_ ss_redir "$1" "${2}"
validate_common_client_options_ ss_redir "$1" \
"${2}" \
'disable_sni:bool:0'
}
validate_ss_rules_section() {


Loading…
Cancel
Save