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.

32 lines
1.2 KiB

  1. #compdef ss-local
  2. local ciphers
  3. 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)'
  4. _arguments "-h::" \
  5. "-s:server host:_hosts" \
  6. "-p:server port:" \
  7. "-l:local port:" \
  8. "-k:password:" \
  9. "-m:encrypt method:$ciphers" \
  10. "-a:run as user:_users" \
  11. "-f:pid file:_files" \
  12. "-t:timeout:" \
  13. "-c:configure file:_files" \
  14. "-n:max number of open files:" \
  15. "-i:bind interface:_net_interfaces" \
  16. "-b:local address:(127.0.0.1 \:\:1 0.0.0.0 \:\:)" \
  17. "-u:enable udp:" \
  18. "-U:udp only:" \
  19. "-v:verbose mode:" \
  20. "--reuse-port::" \
  21. "--fast-open::" \
  22. "--acl:acl file:_files" \
  23. "--mtu::" \
  24. "--mptcp::" \
  25. "--no-delay::" \
  26. "--key:key in base64:" \
  27. "--plugin:plugin name:" \
  28. "--plugin-opts:plugin options:" \
  29. "--help::"