mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-27 16:07:42 +08:00
run external commands client side
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
@ -321,7 +321,7 @@ func callCommand(ctx context.Context, req cmds.Request, root *cmds.Command, cmd
|
||||
}
|
||||
}
|
||||
|
||||
if client != nil {
|
||||
if client != nil && !cmd.External {
|
||||
log.Debug("Executing command via API")
|
||||
res, err = client.Send(req)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user