shadowsocks-libev: move --no-delay into json config file
authorYousong Zhou <yszhou4tech@gmail.com>
Mon, 18 Feb 2019 13:59:45 +0000 (13:59 +0000)
committerYousong Zhou <yszhou4tech@gmail.com>
Tue, 19 Feb 2019 13:08:23 +0000 (21:08 +0800)
It was introduced in 3.1.0 as a command line argument and was part of
the json config since 3.1.1

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
net/shadowsocks-libev/Makefile
net/shadowsocks-libev/files/shadowsocks-libev.init

index ff2b3a8e9792c62a33d147071bdb278760165e87..9c00656e87e1fa4e90052eccbeed2b3ba4584702 100644 (file)
@@ -14,7 +14,7 @@ include $(TOPDIR)/rules.mk
 #
 PKG_NAME:=shadowsocks-libev
 PKG_VERSION:=3.2.3
-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)
index e6a7b062cf21f064b2f75ee6e476ec913009f8ea..42ffe9e0ddd5d8f27da41f07d52bf4e16c3be251 100644 (file)
@@ -67,6 +67,7 @@ ss_xxx() {
        json_add_boolean ipv6_first "$ipv6_first"
        json_add_boolean fast_open "$fast_open"
        json_add_boolean reuse_port "$reuse_port"
+       json_add_boolean no_delay "$no_delay"
        [ -z "$local_address" ] || json_add_string local_address "$local_address"
        [ -z "$local_port" ] || json_add_int local_port "$local_port"
        [ -z "$mode" ] || json_add_string mode "$mode"
@@ -78,7 +79,6 @@ ss_xxx() {
        procd_open_instance "$cfgtype.$cfg"
        procd_set_param command "$bin" -c "$confjson"
        [ "$verbose" = 0 ] || procd_append_param command -v
-       [ "$no_delay" = 0 ] || procd_append_param command --no-delay
        [ -z "$bind_address" ] || procd_append_param command -b "$bind_address"
        procd_set_param file "$confjson"
        procd_set_param respawn