mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-28 03:33:42 +00:00
update usage
This commit is contained in:
@@ -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.
|
||||
|
||||
```
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -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
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user