shadowsocks-libev: support disable_sni for ss_server section

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
Yousong Zhou 2017-08-04 22:13:31 +08:00
parent ea9400988d
commit 682b0c2be7
2 changed files with 9 additions and 3 deletions

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)

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() {