Skip to content

Commit

Permalink
Merge branch 'release/0.6' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
cyfdecyf committed Jan 23, 2013
2 parents d9dd030 + 9ebf730 commit 8514d69
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 20 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
0.6 (not released)
0.6 (2013-01-23)

* Generate ciphers on demand. (Encryption table cache is removed.)
* Support RC4 encryption.
* Generate ciphers on demand (encryption table cache is removed)
* Support RC4 encryption
38 changes: 22 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
# shadowsocks-go #
# shadowsocks-go

Current version: 0.6

shadowsocks-go is a lightweight tunnel proxy which can help you get through firewalls. It is a port of [shadowsocks](https://github.com/clowwindy/shadowsocks).

The protocol is compatible with the origin shadowsocks (if both have been upgraded to the latest version).

# Install #
# Install

Compiled client binaries are provided on [google code](http://code.google.com/p/shadowsocks-go/downloads/list).
Compiled client binaries are provided on [google code](http://code.google.com/p/shadowsocks-go/downloads/list). (Compiled with cgo disabled.)

You can also install from source (assume you have go installed):

On server, run

```
# on server
go get github.com/shadowsocks/shadowsocks-go/cmd/shadowsocks-server
```

On client, run

```
# on client
go get github.com/shadowsocks/shadowsocks-go/cmd/shadowsocks-local
```

# Usage #
It's recommend to disable cgo when compiling shadowsocks-go. This will prevent the go runtime from creating too many threads for dns lookup.

# Usage

Both the server and client program will look for `config.json` in the current directory. You can use `-c` option to specify another configuration file.

Expand All @@ -32,6 +31,7 @@ Configuration file is in json format and has the same syntax with [shadowsocks-n
server your server ip or hostname
server_port server port
local_port local socks5 proxy port
method encryption method, null by default, or use "rc4"
password a password used to encrypt transfer
timeout server option, in seconds
```
Expand All @@ -44,13 +44,13 @@ On client, run `shadowsocks-local`. Change proxy settings of your browser to
SOCKS5 127.0.0.1:local_port
```

## Command line options ##
## Command line options

Command line options can override settings from configuration files.
Command line options can override settings from configuration files. Use `-h` option to see all available options.

```
shadowsocks-local -s server_name -p server_port -l local_port -k password -c config.json
shadowsocks-server -p server_port -k password -t timeout -c config.json
shadowsocks-local -s server_name -p server_port -l local_port -k password -m rc4 -c config.json
shadowsocks-server -p server_port -k password -t timeout -m rc4 -c config.json
```

Use `-d` option to enable debug message.
Expand All @@ -76,6 +76,12 @@ port_password specify multiple ports and passwords to support multiple users

Here's a sample configuration [`server-multi-port.json`](https://github.com/shadowsocks/shadowsocks-go/blob/master/sample-config/server-multi-port.json). Given `port_password`, server program will ignore `server_port` and `password` options.

### Update port password for a running server ###
### Update port password for a running server

Edit the config file used to start the server, then send `SIGHUP` to the server process.

# Note to OpenVZ users

**Use OpenVZ VM that supports vswap**. Otherwise, the OS will incorrectly account much more memory than actually used. shadowsocks-go on OpenVZ VM with vswap takes about 3MB memory after startup. (Refer to [this issue](https://github.com/shadowsocks/shadowsocks-go/issues/3) for more details.)

If vswap is not an option and memory usage is a problem for you, try [shadowsocks-libuv](https://github.com/dndx/shadowsocks-libuv).
2 changes: 1 addition & 1 deletion shadowsocks/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

func PrintVersion() {
const version = "0.5"
const version = "0.6"
fmt.Println("shadowsocks-go version", version)
}

Expand Down

0 comments on commit 8514d69

Please sign in to comment.