|
@ -67,6 +67,7 @@ ss_xxx() { |
|
|
json_add_boolean ipv6_first "$ipv6_first" |
|
|
json_add_boolean ipv6_first "$ipv6_first" |
|
|
json_add_boolean fast_open "$fast_open" |
|
|
json_add_boolean fast_open "$fast_open" |
|
|
json_add_boolean reuse_port "$reuse_port" |
|
|
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_address" ] || json_add_string local_address "$local_address" |
|
|
[ -z "$local_port" ] || json_add_int local_port "$local_port" |
|
|
[ -z "$local_port" ] || json_add_int local_port "$local_port" |
|
|
[ -z "$mode" ] || json_add_string mode "$mode" |
|
|
[ -z "$mode" ] || json_add_string mode "$mode" |
|
@ -78,7 +79,6 @@ ss_xxx() { |
|
|
procd_open_instance "$cfgtype.$cfg" |
|
|
procd_open_instance "$cfgtype.$cfg" |
|
|
procd_set_param command "$bin" -c "$confjson" |
|
|
procd_set_param command "$bin" -c "$confjson" |
|
|
[ "$verbose" = 0 ] || procd_append_param command -v |
|
|
[ "$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" |
|
|
[ -z "$bind_address" ] || procd_append_param command -b "$bind_address" |
|
|
procd_set_param file "$confjson" |
|
|
procd_set_param file "$confjson" |
|
|
procd_set_param respawn |
|
|
procd_set_param respawn |
|
|