Skip to content

Commit

Permalink
docs: update readme document and help messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
genshen committed Sep 1, 2019
1 parent eba419a commit 01f3fb1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ if http(s) proxy in server side is enabled:
# client siede
wssocks client --addr :1080 --remote ws://example.com:1088 --http
```
The http proxy listen address is specified by `--http-addr` in client side (default value is `:1086`),
and https proxy listen address is the same as socks5 proxy listen address(specified by `--addr` option).

Then you can set server address of http and https proxy as `:1080`
in your http(s) proxy client (e.g. mac's network preferences).

Expand Down
4 changes: 2 additions & 2 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ func init() {
var client client
fs := flag.NewFlagSet(CommandNameClient, flag.ExitOnError)
clientCommand.FlagSet = fs
clientCommand.FlagSet.StringVar(&client.address, "addr", ":1080", `listen address of socks5.`)
clientCommand.FlagSet.StringVar(&client.address, "addr", ":1080", `listen address of socks5 proxy.`)
clientCommand.FlagSet.BoolVar(&client.http, "http", false, `enable http and https proxy.`)
clientCommand.FlagSet.StringVar(&client.httpAddr, "http-addr", ":1086", `listen address of http and https(if enabled).`)
clientCommand.FlagSet.StringVar(&client.httpAddr, "http-addr", ":1086", `listen address of http proxy (if enabled).`)
clientCommand.FlagSet.StringVar(&client.remote, "remote", "", `server address and port(e.g: ws://example.com:1088).`)

clientCommand.FlagSet.Usage = clientCommand.Usage // use default usage provided by cmds.Command.
Expand Down

0 comments on commit 01f3fb1

Please sign in to comment.