Skip to content

Commit 937b27d

Browse files
openwrt2223ginuerzh
authored andcommitted
update:update package
1 parent 27dec2d commit 937b27d

File tree

11 files changed

+118
-95
lines changed

11 files changed

+118
-95
lines changed

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"net/url"
88
"time"
99

10-
"github.com/ginuerzh/gosocks5"
10+
"github.com/go-gost/gosocks5"
1111
)
1212

1313
// Client is a proxy client.

examples/ssu/ssu.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"net"
77
"strconv"
88

9-
"github.com/ginuerzh/gosocks5"
9+
"github.com/go-gost/gosocks5"
1010
ss "github.com/shadowsocks/shadowsocks-go/shadowsocks"
1111
)
1212

forward.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
"fmt"
1212

13-
"github.com/ginuerzh/gosocks5"
13+
"github.com/go-gost/gosocks5"
1414
"github.com/go-log/log"
1515
smux "github.com/xtaci/smux"
1616
)

go.mod

Lines changed: 38 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,56 @@
11
module github.com/ginuerzh/gost
22

3-
go 1.16
3+
go 1.17
44

55
require (
6-
git.torproject.org/pluggable-transports/goptlib.git v0.0.0-20180321061416-7d56ec4f381e
7-
git.torproject.org/pluggable-transports/obfs4.git v0.0.0-20181103133120-08f4d470188e
6+
git.torproject.org/pluggable-transports/goptlib.git v1.2.0
87
github.com/LiamHaworth/go-tproxy v0.0.0-20190726054950-ef7efd7f24ed
9-
github.com/Yawning/chacha20 v0.0.0-20170904085104-e3b1f968fc63 // indirect
108
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d
11-
github.com/coreos/go-iptables v0.5.0 // indirect
129
github.com/docker/libcontainer v2.2.1+incompatible
13-
github.com/ginuerzh/gosocks4 v0.0.1
14-
github.com/ginuerzh/gosocks5 v0.2.0
15-
github.com/ginuerzh/tls-dissector v0.0.2-0.20200224064855-24ab2b3a3796
16-
github.com/go-gost/relay v0.1.0
10+
github.com/go-gost/gosocks4 v0.0.1
11+
github.com/go-gost/gosocks5 v0.3.0
12+
github.com/go-gost/relay v0.1.1-0.20211123134818-8ef7fd81ffd7
13+
github.com/go-gost/tls-dissector v0.0.2-0.20211125135007-2b5d5bd9c07e
1714
github.com/go-log/log v0.2.0
1815
github.com/gobwas/glob v0.2.3
19-
github.com/google/gopacket v1.1.19 // indirect
2016
github.com/gorilla/websocket v1.4.2
21-
github.com/klauspost/compress v1.11.12
22-
github.com/klauspost/reedsolomon v1.9.12 // indirect
17+
github.com/klauspost/compress v1.13.6
2318
github.com/lucas-clemente/quic-go v0.24.0
24-
github.com/miekg/dns v1.1.41
19+
github.com/miekg/dns v1.1.43
2520
github.com/milosgajdos/tenus v0.0.3
26-
github.com/pkg/errors v0.9.1 // indirect
2721
github.com/ryanuber/go-glob v1.0.0
28-
github.com/shadowsocks/go-shadowsocks2 v0.1.4
29-
github.com/shadowsocks/shadowsocks-go v0.0.0-20170121203516-97a5c71f80ba
22+
github.com/shadowsocks/go-shadowsocks2 v0.1.5
23+
github.com/shadowsocks/shadowsocks-go v0.0.0-20200409064450-3e585ff90601
3024
github.com/songgao/water v0.0.0-20200317203138-2b4b6d7c09d8
25+
github.com/xtaci/kcp-go v5.4.20+incompatible
26+
github.com/xtaci/smux v1.5.16
27+
github.com/xtaci/tcpraw v1.2.25
28+
gitlab.com/yawning/obfs4.git v0.0.0-20210511220700-e330d1b7024b
29+
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3
30+
golang.org/x/net v0.0.0-20211215060638-4ddde0e984e9
31+
github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect
32+
github.com/cheekybits/genny v1.0.0 // indirect
33+
github.com/coreos/go-iptables v0.6.0 // indirect
34+
github.com/dchest/siphash v1.2.2 // indirect
35+
github.com/fsnotify/fsnotify v1.5.1 // indirect
36+
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 // indirect
37+
github.com/google/gopacket v1.1.19 // indirect
38+
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
39+
github.com/klauspost/reedsolomon v1.9.15 // indirect
40+
github.com/marten-seemann/qtls-go1-16 v0.1.4 // indirect
41+
github.com/marten-seemann/qtls-go1-17 v0.1.0 // indirect
42+
github.com/nxadm/tail v1.4.8 // indirect
43+
github.com/onsi/ginkgo v1.16.5 // indirect
44+
github.com/pkg/errors v0.9.1 // indirect
45+
github.com/riobard/go-bloom v0.0.0-20200614022211-cdc8013cb5b3 // indirect
3146
github.com/templexxx/cpufeat v0.0.0-20180724012125-cef66df7f161 // indirect
3247
github.com/templexxx/xor v0.0.0-20191217153810-f85b25db303b // indirect
33-
github.com/tjfoc/gmsm v1.4.0 // indirect
34-
github.com/xtaci/kcp-go v5.4.20+incompatible
48+
github.com/tjfoc/gmsm v1.4.1 // indirect
3549
github.com/xtaci/lossyconn v0.0.0-20200209145036-adba10fffc37 // indirect
36-
github.com/xtaci/smux v1.5.15
37-
github.com/xtaci/tcpraw v1.2.25
38-
golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83
39-
golang.org/x/net v0.0.0-20210428140749-89ef3d95e781
50+
golang.org/x/mod v0.5.1 // indirect
51+
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect
52+
golang.org/x/text v0.3.7 // indirect
53+
golang.org/x/tools v0.1.8 // indirect
54+
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
55+
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
4056
)

go.sum

Lines changed: 64 additions & 57 deletions
Large diffs are not rendered by default.

handler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"net/url"
88
"time"
99

10-
"github.com/ginuerzh/gosocks4"
11-
"github.com/ginuerzh/gosocks5"
10+
"github.com/go-gost/gosocks4"
11+
"github.com/go-gost/gosocks5"
1212
"github.com/go-log/log"
1313
)
1414

obfs.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ import (
2020
"github.com/go-log/log"
2121

2222
pt "git.torproject.org/pluggable-transports/goptlib.git"
23-
"git.torproject.org/pluggable-transports/obfs4.git/transports/base"
24-
"git.torproject.org/pluggable-transports/obfs4.git/transports/obfs4"
25-
dissector "github.com/ginuerzh/tls-dissector"
23+
"gitlab.com/yawning/obfs4.git/transports/base"
24+
"gitlab.com/yawning/obfs4.git/transports/obfs4"
25+
dissector "github.com/go-gost/tls-dissector"
2626
)
2727

2828
const (

relay.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func (c *relayConnector) ConnectContext(ctx context.Context, conn net.Conn, netw
8484
atype = relay.AddrIPv4
8585
}
8686

87-
req.Features = append(req.Features, &relay.TargetAddrFeature{
87+
req.Features = append(req.Features, &relay.AddrFeature{
8888
AType: atype,
8989
Host: host,
9090
Port: uint16(nport),
@@ -155,8 +155,8 @@ func (h *relayHandler) Handle(conn net.Conn) {
155155
feature := f.(*relay.UserAuthFeature)
156156
user, pass = feature.Username, feature.Password
157157
}
158-
if f.Type() == relay.FeatureTargetAddr {
159-
feature := f.(*relay.TargetAddrFeature)
158+
if f.Type() == relay.FeatureAddr {
159+
feature := f.(*relay.AddrFeature)
160160
raddr = net.JoinHostPort(feature.Host, strconv.Itoa(int(feature.Port)))
161161
}
162162
}

sni.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"sync"
1919

2020
"github.com/asaskevich/govalidator"
21-
dissector "github.com/ginuerzh/tls-dissector"
21+
dissector "github.com/go-gost/tls-dissector"
2222
"github.com/go-log/log"
2323
)
2424

socks.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
"sync"
1414
"time"
1515

16-
"github.com/ginuerzh/gosocks4"
17-
"github.com/ginuerzh/gosocks5"
16+
"github.com/go-gost/gosocks4"
17+
"github.com/go-gost/gosocks5"
1818
"github.com/go-log/log"
1919
smux "github.com/xtaci/smux"
2020
)

ss.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"net/url"
1111
"time"
1212

13-
"github.com/ginuerzh/gosocks5"
13+
"github.com/go-gost/gosocks5"
1414
"github.com/go-log/log"
1515
"github.com/shadowsocks/go-shadowsocks2/core"
1616
ss "github.com/shadowsocks/shadowsocks-go/shadowsocks"
@@ -580,7 +580,7 @@ func (c *shadowCipher) StreamConn(conn net.Conn) net.Conn {
580580
}
581581

582582
func (c *shadowCipher) PacketConn(conn net.PacketConn) net.PacketConn {
583-
return ss.NewSecurePacketConn(conn, c.cipher.Copy(), false)
583+
return ss.NewSecurePacketConn(conn, c.cipher.Copy())
584584
}
585585

586586
func initShadowCipher(info *url.Userinfo) (cipher core.Cipher) {

0 commit comments

Comments
 (0)