rtty: Update to 6.2.0

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
Jianhui Zhao
2018-09-09 02:03:42 +08:00
committed by Karl Palsson
parent 750a8b1659
commit c8bf54875f
3 changed files with 23 additions and 60 deletions
+1 -1
View File
@@ -10,4 +10,4 @@
# option host 'your-server-host' # Server host
# option port '5912' # Server Port
# option ssl 1 # Whether to use ssl
# option ping 5 # heartbeat interval(second)
# option keepalive 5 # keep alive in seconds for this client
+2 -2
View File
@@ -18,7 +18,7 @@ start_rtty() {
'host:host' \
'port:port' \
'ssl:bool:0' \
'ping:uinteger:5'
'keepalive:uinteger:5'
[ $? -ne 0 ] && {
echo "validation failed" >&2
@@ -43,7 +43,7 @@ start_rtty() {
}
procd_open_instance
procd_set_param command $BIN -h $host -p $port -a -P $ping
procd_set_param command $BIN -h $host -p $port -a -k $keepalive
[ -n "$ifname" ] && procd_append_param command -i "$ifname"
[ -n "$id" ] && procd_append_param command -I "$id"
[ -n "$description" ] && procd_append_param command -d "$description"