mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add keep alive support to Shadowsocks-Rust init and interface
This commit is contained in:
parent
ef3eaf6ed1
commit
43107110a5
4 changed files with 19 additions and 2 deletions
|
@ -87,6 +87,7 @@ ss_xxx() {
|
|||
[ -z "$mode" ] || json_add_string mode "$mode"
|
||||
[ -z "$mtu" ] || json_add_int mtu "$mtu"
|
||||
[ -z "$timeout" ] || json_add_int timeout "$timeout"
|
||||
[ -z "$keep_alive" ] || json_add_int keep_alive "$keep_alive"
|
||||
[ -z "$user" ] || json_add_string user "$user"
|
||||
[ -z "$acl" ] || json_add_string acl "$acl"
|
||||
json_dump -i >"$confjson"
|
||||
|
@ -369,6 +370,7 @@ validate_common_options_() {
|
|||
'mode:or("tcp_only", "udp_only", "tcp_and_udp"):tcp_only' \
|
||||
'mtu:uinteger' \
|
||||
'timeout:uinteger' \
|
||||
'keep_alive:uinteger' \
|
||||
'user:string'
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue