diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2019-05-05 16:53:39 +0000 |
---|---|---|
committer | Yousong Zhou <yszhou4tech@gmail.com> | 2019-05-06 15:11:09 +0000 |
commit | c19e949380ce2ca3d74c49488748a28e98ab258e (patch) | |
tree | c0ec2e9e0ae499cd640e1dc1b7f6fafe4cb88154 /net/shadowsocks-libev/files | |
parent | 1ccfdcc5b573f4a09af6804ced9d7c1831697d2c (diff) |
shadowsocks-libev: add plugin options support
Reference: https://github.com/openwrt/packages/issues/8903
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'net/shadowsocks-libev/files')
-rw-r--r-- | net/shadowsocks-libev/files/shadowsocks-libev.init | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/shadowsocks-libev/files/shadowsocks-libev.init b/net/shadowsocks-libev/files/shadowsocks-libev.init index 42ffe9e0d..2f5168177 100644 --- a/net/shadowsocks-libev/files/shadowsocks-libev.init +++ b/net/shadowsocks-libev/files/shadowsocks-libev.init @@ -1,6 +1,6 @@ #!/bin/sh /etc/rc.common # -# Copyright (C) 2017 Yousong Zhou <yszhou4tech@gmail.com> +# Copyright (C) 2017-2019 Yousong Zhou <yszhou4tech@gmail.com> # # This is free software, licensed under the GNU General Public License v3. # See /LICENSE for more information. @@ -73,6 +73,8 @@ ss_xxx() { [ -z "$mode" ] || json_add_string mode "$mode" [ -z "$mtu" ] || json_add_int mtu "$mtu" [ -z "$timeout" ] || json_add_int timeout "$timeout" + [ -z "$plugin" ] || json_add_string plugin "$plugin" + [ -z "$plugin_opts" ] || json_add_string plugin_opts "$plugin_opts" [ -z "$user" ] || json_add_string user "$user" json_dump -i >"$confjson" @@ -237,6 +239,8 @@ validate_common_options_() { 'mode:or("tcp_only", "udp_only", "tcp_and_udp"):tcp_only' \ 'mtu:uinteger' \ 'timeout:uinteger' \ + 'plugin:string' \ + 'plugin_opts:string' \ 'user:string' } |