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) {