From 8fcfecbed14c50dee1eca58788c641edb7de5aaa Mon Sep 17 00:00:00 2001 From: Skyxim Date: Sat, 19 Nov 2022 10:45:22 +0800 Subject: [PATCH] chore: Adjust the return --- component/dialer/dialer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component/dialer/dialer.go b/component/dialer/dialer.go index 330dcf81..4a6982ba 100644 --- a/component/dialer/dialer.go +++ b/component/dialer/dialer.go @@ -208,7 +208,7 @@ func dualStackDialContext(ctx context.Context, network, address string, opt *opt } } - return nil, errors.New("dual stack tcp shake hands failed") + return nil, ctx.Err() } func concurrentDualStackDialContext(ctx context.Context, network, address string, opt *option) (net.Conn, error) {