diff --git a/cmd/ipfs2/main.go b/cmd/ipfs2/main.go index 1a7aefa8c..2c90cb012 100644 --- a/cmd/ipfs2/main.go +++ b/cmd/ipfs2/main.go @@ -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) {