Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ The `examples` directory runs the tests for other packages:
* https://github.com/armon/go-socks5 (PASS, server only, lacks ASSOCIATE)
* https://github.com/things-go/go-socks5 (PASS, server only, lacks BIND)
* https://golang.org/x/net (PASS, client only, lacks BIND and ASSOCIATE)
* https://github.com/wzshiming/socks5 (v0.5.1: FAIL some tests, limited ASSOCIATE support, sometimes fails race checker)
* https://github.com/wzshiming/socks5 (v0.6.0: PASS; v0.5.1: FAIL some tests, limited ASSOCIATE support, sometimes fails race checker)
* https://github.com/txthinking/socks5 (FAIL some tests, broken ASSOCIATE support)
5 changes: 3 additions & 2 deletions examples/github_com_wzshiming_socks5/all_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ import (
"log"
"net"
"testing"
"time"

"github.com/linkdata/socks5test"
"github.com/wzshiming/socks5"
)

var srvfn = func(ctx context.Context, l net.Listener, username, password string) {
server := &socks5.Server{
Logger: log.Default(),
Logger: log.Default(),
ListenBindReuseTimeout: time.Second / 2,
}
if username != "" {
server.Authentication = socks5.UserAuth(username, password)
Expand Down Expand Up @@ -78,7 +80,6 @@ func TestUDP_Single(t *testing.T) {
}

func TestUDP_Multiple(t *testing.T) {
t.Skip("does not support net.PacketConn WriteTo and ReadFrom with other addresses")
socks5test.UDP_Multiple(t, srvfn, clifn)
}

Expand Down
4 changes: 2 additions & 2 deletions examples/github_com_wzshiming_socks5/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module github_com_wzshiming_socks5
go 1.24.0

require (
github.com/linkdata/socks5test v0.0.5
github.com/wzshiming/socks5 v0.5.1
github.com/linkdata/socks5test v0.0.0
Comment thread
linkdata marked this conversation as resolved.
github.com/wzshiming/socks5 v0.6.0
)

replace github.com/linkdata/socks5test => ../..
8 changes: 4 additions & 4 deletions examples/github_com_wzshiming_socks5/go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github.com/linkdata/socks5 v0.0.9 h1:kj5umxuRSHWFUQQVXDHFs6uEx3IwrKx+oVIdvNI4TiI=
github.com/linkdata/socks5 v0.0.9/go.mod h1:0enIWfnw6ELUyAyxaJ2UbP0i6ZDmCAlj+P+5THjQkQc=
github.com/wzshiming/socks5 v0.5.1 h1:TRekapqSWrE4QYfGiZ4Ok04wQECuAyQsSUdljvbWO5w=
github.com/wzshiming/socks5 v0.5.1/go.mod h1:BvCAqlzocQN5xwLjBZDBbvWlrx8sCYSSbHEOf2wZgT0=
github.com/linkdata/socks5 v0.0.15 h1:ZLIagBPhzBDWlPVccWdEWblNclwhfY/cRlWKfP2VAJ8=
github.com/linkdata/socks5 v0.0.15/go.mod h1:0enIWfnw6ELUyAyxaJ2UbP0i6ZDmCAlj+P+5THjQkQc=
github.com/wzshiming/socks5 v0.6.0 h1:p5RFNs21Byv+Tnc7chYRFtz0SzK8TcqKV7xFkXSeZvw=
github.com/wzshiming/socks5 v0.6.0/go.mod h1:BvCAqlzocQN5xwLjBZDBbvWlrx8sCYSSbHEOf2wZgT0=