mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-02-17 23:04:38 +00:00
Fix close grpc conn
This commit is contained in:
parent
7279855b08
commit
1659ae5d79
|
@ -62,7 +62,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) {
|
||||
|
|
Loading…
Reference in a new issue