diff --git a/shadowsocks-libev/Makefile b/shadowsocks-libev/Makefile index 4a1192bac..79a6894a8 100644 --- a/shadowsocks-libev/Makefile +++ b/shadowsocks-libev/Makefile @@ -15,7 +15,7 @@ include $(TOPDIR)/rules.mk # PKG_NAME:=shadowsocks-libev PKG_VERSION:=3.1.2 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/shadowsocks/shadowsocks-libev/releases/download/v$(PKG_VERSION) diff --git a/shadowsocks-libev/files/shadowsocks-libev.init b/shadowsocks-libev/files/shadowsocks-libev.init index d3f9b8909..48475037b 100644 --- a/shadowsocks-libev/files/shadowsocks-libev.init +++ b/shadowsocks-libev/files/shadowsocks-libev.init @@ -46,6 +46,7 @@ ss_mkjson_server_conf() { ss_mkjson_server_conf_() { [ -n "$server_port" ] || return 1 password="${password//\"/\\\"}" + key="$(echo $key | sed 's/+/-/g; s/\//_/g;')" cat <<-EOF ${server:+${q}server${q}: ${q}$server${q},} "server_port": $server_port,