mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-10-20 08:14:24 +00:00
Fix command client cancellation during connection
This commit is contained in:
@@ -103,5 +103,10 @@ func NewStandaloneRemoteCommandClient(remoteOptions *RemoteConnectionOptions) (*
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &CommandClient{remote: remote}, nil
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
return &CommandClient{
|
||||
remote: remote,
|
||||
ctx: ctx,
|
||||
cancel: cancel,
|
||||
}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user