From 628cf56d3c9d9b1f1c8e0a2eaacfd0a778cb90bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Wed, 14 Sep 2022 14:02:33 +0800 Subject: [PATCH] Fix close grpc conn --- transport/v2raygrpc/client.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/transport/v2raygrpc/client.go b/transport/v2raygrpc/client.go index d53ef0a6..cc89c1df 100644 --- a/transport/v2raygrpc/client.go +++ b/transport/v2raygrpc/client.go @@ -66,7 +66,9 @@ func NewClient(ctx context.Context, dialer N.Dialer, serverAddr M.Socksaddr, opt } func (c *Client) Close() error { - return common.Close(c.conn) + return common.Close( + common.PtrOrNil(c.conn), + ) } func (c *Client) connect() (*grpc.ClientConn, error) {