You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
1.1 KiB

#compdef ss-redir
local ciphers
ciphers='(rc4-md5 aes-128-gcm aes-192-gcm aes-256-gcm aes-128-cfb aes-192-cfb aes-256-cfb aes-128-ctr aes-192-ctr aes-256-ctr camellia-128-cfb camellia-192-cfb camellia-256-cfb bf-cfb chacha20-ietf-poly1305 xchacha20-ietf-poly1305 salsa20 chacha20 chacha20-ietf)'
_arguments "-h::" \
"-s:server host:_hosts" \
"-p:server port:" \
"-l:local port:" \
"-k:password:" \
"-m:encrypt method:$ciphers" \
"-a:run as user:_users" \
"-f:pid file:_files" \
"-t:timeout:" \
"-c:configure file:_files" \
"-n:nofile:" \
"-b:local address:(127.0.0.1 \:\:1 0.0.0.0 \:\:)" \
"-u:enable udp:" \
"-U:udp only:" \
"-v:verbose mode:" \
"--reuse-port::" \
"--fast-open::" \
"--acl:acl file:_files" \
"--mtu::" \
"--mptcp::" \
"--no-delay::" \
"--key:key in base64:" \
"--plugin:plugin name:" \
"--plugin-opts:plugin options:" \
"--help::"