From e4b62b435c4339f0d5e017e750809466501fc72a Mon Sep 17 00:00:00 2001 From: Max Lv Date: Fri, 23 Jan 2015 08:45:48 +0800 Subject: [PATCH] fix #228 --- src/utils.c | 69 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 40 insertions(+), 29 deletions(-) diff --git a/src/utils.c b/src/utils.c index 064f9198..a9f1357c 100644 --- a/src/utils.c +++ b/src/utils.c @@ -198,63 +198,74 @@ void usage() printf(" ss-[local|redir|server|tunnel]\n"); printf("\n"); printf( - " -s host name or ip address of your remote server\n"); - printf( - " -p port number of your remote server\n"); - printf( - " -l port number of your local server\n"); + " -s host name or ip address of your remote server\n"); + printf("\n"); printf( - " -k password of your remote server\n"); + " -p port number of your remote server\n"); printf("\n"); + printf( + " -l port number of your local server\n"); printf("\n"); printf( - " [-m ] encrypt method: table, rc4, rc4-md5,\n"); + " -k password of your remote server\n"); + printf("\n"); printf( - " aes-128-cfb, aes-192-cfb, aes-256-cfb,\n"); + " [-m ] encrypt method: table, rc4, rc4-md5,\n"); printf( - " bf-cfb, camellia-128-cfb, camellia-192-cfb,\n"); + " aes-128-cfb, aes-192-cfb, aes-256-cfb,\n"); printf( - " camellia-256-cfb, cast5-cfb, des-cfb, idea-cfb,\n"); + " bf-cfb, camellia-128-cfb, camellia-192-cfb,\n"); printf( - " rc2-cfb, seed-cfb, salsa20 and chacha20\n"); + " camellia-256-cfb, cast5-cfb, des-cfb, idea-cfb,\n"); printf( - " [-f ] file to store the pid\n"); + " rc2-cfb, seed-cfb, salsa20 and chacha20\n"); + printf("\n"); printf( - " [-t ] socket timeout in seconds\n"); + " [-f ] the file path to store pid\n"); + printf("\n"); printf( - " [-c ] config file in json\n"); + " [-t ] socket timeout in seconds\n"); printf("\n"); + printf( + " [-c ] the path to config file\n"); printf("\n"); printf( - " [-i ] network interface to bind,\n"); + " [-i ] network interface to bind,\n"); printf( - " not available in redir mode\n"); + " not available in redir mode\n"); + printf("\n"); printf( - " [-b ] local address to bind,\n"); + " [-b ] local address to bind,\n"); printf( - " not available in server mode\n"); + " not available in server mode\n"); + printf("\n"); printf( - " [-u] enable udprelay mode\n"); + " [-u] enable udprelay mode,\n"); printf( - " not available in redir mode\n"); + " not available in redir mode\n"); + printf("\n"); printf( - " [-L :] setup a local port forwarding tunnel,\n"); + " [-L :] specify destination server address and port\n"); printf( - " only available in tunnel mode\n"); + " for local port forwarding,\n"); printf( - " [-d ] setup name servers for internal DNS resolver,\n"); + " only available in tunnel mode\n"); + printf("\n"); printf( - " only available in server mode\n"); + " [-d ] setup name servers for internal DNS resolver,\n"); printf( - " [-v] verbose mode\n"); - printf("\n"); + " only available in server mode\n"); printf("\n"); printf( - " [--fast-open] enable TCP fast open,\n"); + " [--fast-open] enable TCP fast open,\n"); + printf( + " only available on Linux kernel > 3.7.0\n"); + printf("\n"); printf( - " only available on Linux kernel > 3.7.0\n"); + " [--acl ] config file of ACL (Access Control List)\n"); + printf("\n"); printf( - " [--acl ] config file of ACL (Access Control List)\n"); + " [-v] verbose mode\n"); printf("\n"); }