@@ -93,7 +93,7 @@ You can download the binary for your platform from [Releases](https://github.com
9393Example:
9494
9595``` shell
96- HPTS_RELEASE=v1.7.0 ; wget -v https://github.com/shadowy-pycoder/go-http-proxy-to-socks/releases/download/$HPTS_RELEASE /gohpts-$HPTS_RELEASE -linux-amd64.tar.gz -O gohpts && tar xvzf gohpts && mv -f gohpts-$HPTS_RELEASE -linux-amd64 gohpts && ./gohpts -h
96+ HPTS_RELEASE=v1.7.1 ; wget -v https://github.com/shadowy-pycoder/go-http-proxy-to-socks/releases/download/$HPTS_RELEASE /gohpts-$HPTS_RELEASE -linux-amd64.tar.gz -O gohpts && tar xvzf gohpts && mv -f gohpts-$HPTS_RELEASE -linux-amd64 gohpts && ./gohpts -h
9797```
9898
9999Alternatively, you can install it using ` go install ` command (requires Go [ 1.24] ( https://go.dev/doc/install ) or later):
@@ -132,36 +132,38 @@ GitHub: https://github.com/shadowy-pycoder/go-http-proxy-to-socks
132132Usage: gohpts [OPTIONS]
133133Options:
134134 -h Show this help message and exit.
135- -D Run as a daemon (provide -logfile to see logs)
135+ -D Run as a daemon (provide -logfile to see logs)
136136 -M value
137- Transparent proxy mode: [redirect tproxy]
137+ Transparent proxy mode: [redirect tproxy]
138138 -T string
139- Address of transparent proxy server (no HTTP)
139+ Address of transparent proxy server (no HTTP)
140140 -U string
141- User for HTTP proxy (basic auth). This flag invokes prompt for password (not echoed to terminal)
141+ User for HTTP proxy (basic auth). This flag invokes prompt for password (not echoed to terminal)
142142 -c string
143- Path to certificate PEM encoded file
144- -d Show logs in DEBUG mode
143+ Path to certificate PEM encoded file
144+ -color
145+ Enable colored output for logs in stdout (no effect if log file provided or -j flag specified)
146+ -d Show logs in DEBUG mode
145147 -f string
146- Path to server configuration file in YAML format
147- -j Show logs in JSON format
148+ Path to server configuration file in YAML format
149+ -j Show logs in JSON format
148150 -k string
149- Path to private key PEM encoded file
151+ Path to private key PEM encoded file
150152 -l string
151- Address of HTTP proxy server (default " 127.0.0.1:8080" )
153+ Address of HTTP proxy server (default " 127.0.0.1:8080" )
152154 -logfile string
153- Log file path (Default: stdout)
155+ Log file path (Default: stdout)
154156 -s string
155- Address of SOCKS5 proxy server (default " 127.0.0.1:1080" )
157+ Address of SOCKS5 proxy server (default " 127.0.0.1:1080" )
156158 -sniff
157- Enable traffic sniffing for HTTP and TLS
159+ Enable traffic sniffing for HTTP and TLS
158160 -snifflog string
159- Sniffed traffic log file path (Default: the same as -logfile)
161+ Sniffed traffic log file path (Default: the same as -logfile)
160162 -t string
161- Address of transparent proxy server (it starts along with HTTP proxy server)
163+ Address of transparent proxy server (it starts along with HTTP proxy server)
162164 -u string
163- User for SOCKS5 proxy authentication. This flag invokes prompt for password (not echoed to terminal)
164- -v print version
165+ User for SOCKS5 proxy authentication. This flag invokes prompt for password (not echoed to terminal)
166+ -v print version
165167` ` `
166168
167169# ## Configuration via CLI flags
0 commit comments