Skip to content

Commit 579bd9b

Browse files
committed
socks5test v0.0.8
1 parent 0af3fcf commit 579bd9b

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

client/client.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func (cli *Client) Dial(network, address string) (net.Conn, error) {
6060
return cli.DialContext(context.Background(), network, address)
6161
}
6262

63-
func (cli *Client) Listen(ctx context.Context, network, address string) (l net.Listener, err error) {
63+
func (cli *Client) ListenContext(ctx context.Context, network, address string) (l net.Listener, err error) {
6464
err = socks5.ErrUnsupportedNetwork
6565
switch network {
6666
case "tcp", "tcp4", "tcp6":
@@ -69,6 +69,10 @@ func (cli *Client) Listen(ctx context.Context, network, address string) (l net.L
6969
return
7070
}
7171

72+
func (cli *Client) Listen(network, address string) (l net.Listener, err error) {
73+
return cli.ListenContext(context.Background(), network, address)
74+
}
75+
7276
func (cli *Client) resolve(ctx context.Context, hostport string) (ipandport string, err error) {
7377
ipandport = hostport
7478
if cli.LocalResolve {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ module github.com/linkdata/socks5
22

33
go 1.24
44

5-
require github.com/linkdata/socks5test v0.0.5
5+
require github.com/linkdata/socks5test v0.0.8
66

77
// replace github.com/linkdata/socks5test => ../socks5test

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github.com/linkdata/socks5test v0.0.5 h1:FLaK6dAmBF0DwfRMz1HUJ3O/Z7/zvZ4V8adR+0CU5Dw=
2-
github.com/linkdata/socks5test v0.0.5/go.mod h1:PbI2fG2l9l45MwR8M80mTIyY5iAO+fwy8bTg+BN6UFY=
1+
github.com/linkdata/socks5test v0.0.8 h1:g9SgoexfmtrcZDzovInI1SKeH6K9WiHIXr/vdVgURPc=
2+
github.com/linkdata/socks5test v0.0.8/go.mod h1:q+nxgFJnWgZzXj7g203/l7ZmJvgQekvaosm0YpyU3Sw=

0 commit comments

Comments
 (0)