Skip to content

Commit 4d95942

Browse files
updated mshark for better DNS parsing
1 parent a7ec687 commit 4d95942

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ You can download the binary for your platform from [Releases](https://github.com
107107
Example:
108108

109109
```shell
110-
GOHPTS_RELEASE=v1.11.1; 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
110+
GOHPTS_RELEASE=v1.11.2; 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
111111
```
112112

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

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/rs/zerolog v1.34.0
99
github.com/shadowy-pycoder/arpspoof v0.0.1
1010
github.com/shadowy-pycoder/colors v0.0.1
11-
github.com/shadowy-pycoder/mshark v0.0.17
11+
github.com/shadowy-pycoder/mshark v0.0.18
1212
github.com/wzshiming/socks5 v0.5.2
1313
golang.org/x/sys v0.33.0
1414
golang.org/x/term v0.32.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ github.com/shadowy-pycoder/arpspoof v0.0.1 h1:K5D+cVGc3SCTI4VxSB6oE2x8SJgxRjE72E
3636
github.com/shadowy-pycoder/arpspoof v0.0.1/go.mod h1:dsVZh4gbbQFA4BQLEmL2qpsjtytKwxaf4oA2tRmvCW8=
3737
github.com/shadowy-pycoder/colors v0.0.1 h1:weCj/YIOupqy4BSP8KuVzr20fC+cuAv/tArz7bhhkP4=
3838
github.com/shadowy-pycoder/colors v0.0.1/go.mod h1:lkrJS1PY2oVigNLTT6pkbF7B/v0YcU2LD5PZnss1Q4U=
39-
github.com/shadowy-pycoder/mshark v0.0.17 h1:ZVgMHt89Gzij2VXwEf2E4Jnjc5ItOvbVehGwc1V6YyY=
40-
github.com/shadowy-pycoder/mshark v0.0.17/go.mod h1:Txx0p8JxYOGd+0V+6N9MeCUGtGdfHAATWE8KB1nd7H0=
39+
github.com/shadowy-pycoder/mshark v0.0.18 h1:SaNsl7U2N1LaDc8ZGfdOclRI0UsyiDE/39NjxU2dHnQ=
40+
github.com/shadowy-pycoder/mshark v0.0.18/go.mod h1:Txx0p8JxYOGd+0V+6N9MeCUGtGdfHAATWE8KB1nd7H0=
4141
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
4242
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
4343
github.com/wzshiming/socks5 v0.5.2 h1:LtoowVNwAmkIQSkP1r1Wg435xUmC+tfRxorNW30KtnM=

tproxy_udp_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ func (tsu *tproxyServerUDP) handleDNSConnection(conn *dnsConn) {
603603
if err := dns.Parse(buf[:nr]); err == nil {
604604
conn.respChan <- dns
605605
} else {
606-
tsu.p.logger.Error().Err(err).Msgf("%v", buf[:nr])
606+
tsu.p.logger.Debug().Err(err).Msgf("%v", buf[:nr])
607607
}
608608
}
609609
nw, ew := tsu.gwConn.WriteToUDP(buf[0:nr], conn.srcAddr)

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

0 commit comments

Comments
 (0)