mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-23 21:47:52 +08:00
main: Fixed logical error in remote/local check
This commit is contained in:

committed by
Juan Batiz-Benet

parent
81b3680908
commit
c973776049
@ -206,7 +206,8 @@ func callCommand(req cmds.Request, root *cmds.Command) (cmds.Response, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
remote := !isLocal(req.Command()) && !found || !local
|
||||
|
||||
remote := !isLocal(req.Command()) && (!found || !local)
|
||||
|
||||
log.Info("Checking if daemon is running...")
|
||||
if remote && daemon.Locked(req.Context().ConfigRoot) {
|
||||
|
Reference in New Issue
Block a user