|
|
@ -77,25 +77,27 @@ void usage() |
|
|
|
printf(" maintained by Max Lv <max.c.lv@gmail.com>\n\n"); |
|
|
|
printf(" usage:\n\n"); |
|
|
|
printf(" ss-[local|redir|server]\n"); |
|
|
|
printf(" -s <server_host> -p <server_port>\n"); |
|
|
|
printf(" -l <local_port> -k <password>\n"); |
|
|
|
printf(" [-m <encrypt_method>] [-f <pid_file>]\n"); |
|
|
|
printf(" [-t <timeout>] [-c <config_file>]\n"); |
|
|
|
printf(" [-i <interface>] [-b <local_address>]\n"); |
|
|
|
printf(" -s <server_host> host name or ip address of your remote server\n"); |
|
|
|
printf(" -p <server_port> port number of your remote server\n"); |
|
|
|
printf(" -l <local_port>> port number of your local server\n"); |
|
|
|
printf(" -k <password> password of your remote server\n"); |
|
|
|
printf("\n"); |
|
|
|
printf(" options:\n\n"); |
|
|
|
printf(" encrypt_method: table, rc4,\n"); |
|
|
|
printf(" aes-128-cfb, aes-192-cfb, aes-256-cfb,\n"); |
|
|
|
printf(" bf-cfb, camellia-128-cfb, camellia-192-cfb,\n"); |
|
|
|
printf(" camellia-256-cfb, cast5-cfb, des-cfb,\n"); |
|
|
|
printf(" idea-cfb, rc2-cfb and seed-cfb\n"); |
|
|
|
printf(" pid_file: valid path to the pid file\n"); |
|
|
|
printf(" timeout: socket timeout in senconds\n"); |
|
|
|
printf(" config_file: json format config file\n"); |
|
|
|
printf(" interface: specific network interface to bind,\n"); |
|
|
|
printf(" only avaliable in local and server modes\n"); |
|
|
|
printf(" local_address: specific local address to bind,\n"); |
|
|
|
printf(" only avaliable in local and redir modes\n"); |
|
|
|
printf(" [-m <encrypt_method>] encrypt method, supporting table, rc4,\n"); |
|
|
|
printf(" aes-128-cfb, aes-192-cfb, aes-256-cfb,\n"); |
|
|
|
printf(" bf-cfb, camellia-128-cfb, camellia-192-cfb,\n"); |
|
|
|
printf(" camellia-256-cfb, cast5-cfb, des-cfb,\n"); |
|
|
|
printf(" idea-cfb, rc2-cfb and seed-cfb\n"); |
|
|
|
printf(" [-f <pid_file>] valid path to the pid file\n"); |
|
|
|
printf(" [-t <timeout>] socket timeout in seconds\n"); |
|
|
|
printf(" [-c <config_file>] json format config file\n"); |
|
|
|
printf("\n"); |
|
|
|
printf(" [-i <interface>] specific network interface to bind,\n"); |
|
|
|
printf(" only avaliable in local and server modes\n"); |
|
|
|
printf(" [-b <local_address>] specific local address to bind,\n"); |
|
|
|
printf(" only avaliable in local and redir modes\n"); |
|
|
|
printf(" [-u] udprelay mode to supprot udp traffic\n"); |
|
|
|
printf(" only avaliable in local and redir modes\n"); |
|
|
|
printf(" [-v] verbose mode, debug output in console\n"); |
|
|
|
printf("\n"); |
|
|
|
} |
|
|
|
|
|
|
|