update usage

This commit is contained in:
Max Lv
2013-04-05 11:10:09 +08:00
parent 70929b7bd4
commit 2c732efaac
5 changed files with 357 additions and 385 deletions
+9 -1
View File
@@ -30,7 +30,7 @@ Installation
Build the binary like this:
```bash
sudo apt-get install build-essential autoconf libtool libev-dev
sudo apt-get install build-essential autoconf libtool
./configure && make
sudo make install
```
@@ -44,6 +44,9 @@ usage:
ss-local -s server_host -p server_port -l local_port -k password
[-m encrypt_method] [-f pid_file] [-t timeout] [-c config_file]
ss-redir -s server_host -p server_port -l local_port -k password
[-m encrypt_method] [-f pid_file] [-t timeout] [-c config_file]
ss-server -s server_host -p server_port -k password
[-m encrypt_method] [-f pid_file] [-t timeout] [-c config_file]
@@ -54,4 +57,9 @@ options:
timeout: socket timeout in senconds
config_file: json format config file
notes:
ss-redir provides a transparent proxy function and only works on the
Linux platform with iptables.
```
-5
View File
@@ -230,11 +230,6 @@
# endif
#endif
/* Enable large inode numbers on Mac OS X 10.5. */
#ifndef _DARWIN_USE_64_BIT_INODE
# define _DARWIN_USE_64_BIT_INODE 1
#endif
/* Number of bits in a file offset, on hosts where this is settable. */
#undef _FILE_OFFSET_BITS
Vendored
+346 -377
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -115,7 +115,7 @@ static void server_recv_cb (EV_P_ ev_io *w, int revents) {
if (r == 0) {
// connection closed
remote->buf = 0;
remote->buf_len = 0;
close_and_free_server(EV_A_ server);
if (remote != NULL) {
ev_io_start(EV_A_ &remote->send_ctx->io);
+1 -1
View File
@@ -54,7 +54,7 @@ void usage() {
printf(" Shadowsocks-libev %s\n\n", VERSION);
printf(" maintained by Max Lv <max.c.lv@gmail.com>\n\n");
printf(" usage:\n\n");
printf(" ss-[local|server] -s server_host -p server_port -l local_port -k password\n");
printf(" ss-[local|redir|server] -s server_host -p server_port -l local_port -k password\n");
printf(" [-m encrypt_method] [-f pid_file] [-t timeout] [-c config_file]\n");
printf("\n");
printf(" options:\n\n");