Skip to content

Commit fc7af7d

Browse files
updated README.md, bumped to v1.7.1
1 parent 213168f commit fc7af7d

File tree

3 files changed

+22
-20
lines changed

3 files changed

+22
-20
lines changed

README.md

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ You can download the binary for your platform from [Releases](https://github.com
9393
Example:
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

9999
Alternatively, 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
132132
Usage: gohpts [OPTIONS]
133133
Options:
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

gohpts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ func (p *proxyapp) sniffreporter(wg *sync.WaitGroup, sniffheader *[]string, reqC
532532
defer wg.Done()
533533
sniffheaderlen := len(*sniffheader)
534534
for {
535-
req, okreq := <-reqChan // if resp comes first it blocks
535+
req, okreq := <-reqChan // FIX: if resp comes first it blocks
536536
resp, okresp := <-respChan
537537
if !okreq || !okresp {
538538
return

version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package gohpts
22

3-
const Version string = "gohpts v1.7.0"
3+
const Version string = "gohpts v1.7.1"

0 commit comments

Comments
 (0)