From 01f3fb10867518b011e95c865baf943fa535464d Mon Sep 17 00:00:00 2001 From: genshen Date: Sun, 1 Sep 2019 22:31:21 +0800 Subject: [PATCH] docs: update readme document and help messages. --- README.md | 3 +++ client/client.go | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 74c7c19..41c0f0b 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/client/client.go b/client/client.go index e65c3ef..4c7610e 100644 --- a/client/client.go +++ b/client/client.go @@ -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.