From c9737760495c86743eff724c061c00aa13ac4caa Mon Sep 17 00:00:00 2001 From: Matt Bell Date: Thu, 13 Nov 2014 01:04:21 -0800 Subject: [PATCH] main: Fixed logical error in remote/local check --- cmd/ipfs2/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {