Skip to content

Commit 325af72

Browse files
updated dependencies, bumped to v1.12.4
1 parent 0bae0e1 commit 325af72

5 files changed

Lines changed: 10 additions & 11 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ yay -S gohpts
118118
Example:
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

124124
3. Alternatively, you can install it using `go install` command (requires Go [1.26](https://go.dev/doc/install) or later):

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ github.com/shadowy-pycoder/arpspoof v0.0.3 h1:983X9ZPXGW1GBNQiaaGbpQtpZIIxaks/bN
3636
github.com/shadowy-pycoder/arpspoof v0.0.3/go.mod h1:TP2JF4acJTXC6MJ0mjCkR6NB1L2ov/hJQF5s5TCbiFk=
3737
github.com/shadowy-pycoder/colors v0.0.2 h1:l4zvGOTPS92oxPIo6g+6t8tbzhh/v+6yT5A/3TQp8rc=
3838
github.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=
4343
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
4444
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
4545
github.com/wzshiming/socks5 v0.5.2 h1:LtoowVNwAmkIQSkP1r1Wg435xUmC+tfRxorNW30KtnM=

gohpts.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

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.12.3"
3+
const Version string = "gohpts v1.12.4"

0 commit comments

Comments
 (0)