shadowsocks-libev: setting mode with default value tcp_only

This is the default value taken by ss-server and ss-redir.  After this
change ss_rules section can still use those ss-redir instances who do
not have mode explicitly specified.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
Yousong Zhou
2017-08-13 12:07:07 +08:00
parent 37c9b31d7f
commit d4ed4c1f21
2 changed files with 3 additions and 3 deletions
@@ -274,7 +274,7 @@ validate_common_options_() {
'ipv6_first:bool:0' \
'reuse_port:bool:0' \
'verbose:bool:0' \
'mode:or("tcp_only", "udp_only", "tcp_and_udp")' \
'mode:or("tcp_only", "udp_only", "tcp_and_udp"):tcp_only' \
'mtu:uinteger' \
'timeout:uinteger' \
'user:string'