File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ yay -S gohpts
118118Example:
119119
120120``` shell
121- GOHPTS_RELEASE=v1.12.3 ; wget -v https://github.com/shadowy-pycoder/go-http-proxy-to-socks/releases/download/$GOHPTS_RELEASE /gohpts-$GOHPTS_RELEASE -linux-amd64.tar.gz -O gohpts && tar xvzf gohpts && mv -f gohpts-$GOHPTS_RELEASE -linux-amd64 gohpts && ./gohpts -h
121+ GOHPTS_RELEASE=v1.12.4 ; wget -v https://github.com/shadowy-pycoder/go-http-proxy-to-socks/releases/download/$GOHPTS_RELEASE /gohpts-$GOHPTS_RELEASE -linux-amd64.tar.gz -O gohpts && tar xvzf gohpts && mv -f gohpts-$GOHPTS_RELEASE -linux-amd64 gohpts && ./gohpts -h
122122```
123123
1241243 . Alternatively, you can install it using ` go install ` command (requires Go [ 1.26] ( https://go.dev/doc/install ) or later):
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ require (
88 github.com/rs/zerolog v1.34.0
99 github.com/shadowy-pycoder/arpspoof v0.0.3
1010 github.com/shadowy-pycoder/colors v0.0.2
11- github.com/shadowy-pycoder/mshark v0.0.22
12- github.com/shadowy-pycoder/ndpspoof v0.0.4
11+ github.com/shadowy-pycoder/mshark v0.0.23
12+ github.com/shadowy-pycoder/ndpspoof v0.0.6
1313 github.com/wzshiming/socks5 v0.5.2
1414 golang.org/x/sys v0.33.0
1515 golang.org/x/term v0.32.0
Original file line number Diff line number Diff line change @@ -36,10 +36,10 @@ github.com/shadowy-pycoder/arpspoof v0.0.3 h1:983X9ZPXGW1GBNQiaaGbpQtpZIIxaks/bN
3636github.com/shadowy-pycoder/arpspoof v0.0.3 /go.mod h1:TP2JF4acJTXC6MJ0mjCkR6NB1L2ov/hJQF5s5TCbiFk =
3737github.com/shadowy-pycoder/colors v0.0.2 h1:l4zvGOTPS92oxPIo6g+6t8tbzhh/v+6yT5A/3TQp8rc =
3838github.com/shadowy-pycoder/colors v0.0.2 /go.mod h1:lkrJS1PY2oVigNLTT6pkbF7B/v0YcU2LD5PZnss1Q4U =
39- github.com/shadowy-pycoder/mshark v0.0.22 h1:t0A68r0L6y0w1OOcE2AzAD8OeWkIKMLaL7hxsr//8Jk =
40- github.com/shadowy-pycoder/mshark v0.0.22 /go.mod h1:uH8wnzPH5VTeKRvCFpvMvnJmjSYY4L6RRgM1V5AnF5A =
41- github.com/shadowy-pycoder/ndpspoof v0.0.4 h1:r98LALiYDduScOI9pLTpvdmSL57rgwc/q+8A1rakhD0 =
42- github.com/shadowy-pycoder/ndpspoof v0.0.4 /go.mod h1:wDdJw5DoRZ6xWhVNcz1+rDbLQ+Q6PsIDyMPms79f63U =
39+ github.com/shadowy-pycoder/mshark v0.0.23 h1:jgOIDhOi+3fB3uUxpvKO5THU9N3n+bHsabcTbQUeVNM =
40+ github.com/shadowy-pycoder/mshark v0.0.23 /go.mod h1:uH8wnzPH5VTeKRvCFpvMvnJmjSYY4L6RRgM1V5AnF5A =
41+ github.com/shadowy-pycoder/ndpspoof v0.0.6 h1:4Rct1P4tSa00Q6F1Wl/NB0Y1pGTppZHhfA7KrgYN77g =
42+ github.com/shadowy-pycoder/ndpspoof v0.0.6 /go.mod h1:Bv6s1r+YZNLSnKNbGEW9ciR4ycsaUSRjF8jTXHiDW38 =
4343github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg =
4444github.com/stretchr/testify v1.9.0 /go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY =
4545github.com/wzshiming/socks5 v0.5.2 h1:LtoowVNwAmkIQSkP1r1Wg435xUmC+tfRxorNW30KtnM =
Original file line number Diff line number Diff line change @@ -590,13 +590,12 @@ func New(conf *Config) *proxyapp {
590590 if p .iface != nil {
591591 nsc .Interface = p .iface .Name
592592 }
593- nsc .DNSServers = ""
593+ nsc .RDNSS = ""
594594 nsc .Auto = false
595595 if nsc .RA {
596596 hostIP , err := network .GetHostIPv6GlobalUnicastFromRoute ()
597597 if err == nil {
598- nsc .RDNSS = true
599- nsc .DNSServers = hostIP .String () // use host ip as DNS server
598+ nsc .RDNSS = hostIP .String () // use host ip as DNS server
600599 p .raEnabled = true
601600 p .hostIPGlobal = hostIP
602601 }
Original file line number Diff line number Diff line change 11package gohpts
22
3- const Version string = "gohpts v1.12.3 "
3+ const Version string = "gohpts v1.12.4 "
You can’t perform that action at this time.
0 commit comments