Browse Source

update usage

pull/4/merge
Max Lv 12 years ago
parent
commit
2c732efaac
5 changed files with 357 additions and 385 deletions
  1. 10
      README.md
  2. 5
      config.h.in
  3. 723
      configure
  4. 2
      src/redir.c
  5. 2
      src/utils.c

10
README.md

@ -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
config.h.in

@ -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

723
configure
File diff suppressed because it is too large
View File

2
src/redir.c

@ -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);

2
src/utils.c

@ -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");

Loading…
Cancel
Save