udpspeeder: add key option
Signed-off-by: Tan Xiaofan <xfan1024@live.com>
This commit is contained in:
parent
1e2f4f1bf7
commit
27a6a2df7e
1 changed files with 5 additions and 2 deletions
|
@ -17,6 +17,7 @@ validate_udpspeeder_section() {
|
||||||
'timeout:integer:8' \
|
'timeout:integer:8' \
|
||||||
'local:string' \
|
'local:string' \
|
||||||
'remote:string' \
|
'remote:string' \
|
||||||
|
'key:string' \
|
||||||
'report:integer:10' \
|
'report:integer:10' \
|
||||||
'disable_obscure:bool:0' \
|
'disable_obscure:bool:0' \
|
||||||
'interval:integer:0' \
|
'interval:integer:0' \
|
||||||
|
@ -33,8 +34,8 @@ start_instance() {
|
||||||
|
|
||||||
local section="$1"
|
local section="$1"
|
||||||
|
|
||||||
local server mode mtu timeout local remote report disable_obscure fifo interval fec disable_fec sock_buf queue_len \
|
local server mode mtu timeout local remote key report disable_obscure fifo interval \
|
||||||
decode_buf sock_buf log_level enabled
|
fec disable_fec sock_buf queue_len decode_buf sock_buf log_level enabled
|
||||||
|
|
||||||
fifo="/tmp/udpspeeder-${section}.fifo"
|
fifo="/tmp/udpspeeder-${section}.fifo"
|
||||||
|
|
||||||
|
@ -79,6 +80,8 @@ start_instance() {
|
||||||
procd_append_param command --disable-obscure
|
procd_append_param command --disable-obscure
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[ -z "${key}" ] || procd_append_param command --key "${key}"
|
||||||
|
|
||||||
procd_append_param command -l "${local}"
|
procd_append_param command -l "${local}"
|
||||||
procd_append_param command -r "${remote}"
|
procd_append_param command -r "${remote}"
|
||||||
procd_append_param command --mode "${mode}"
|
procd_append_param command --mode "${mode}"
|
||||||
|
|
Loading…
Reference in a new issue