@cryptotaxi247 / kubo / commits / b4735eb10

main: Test if commands are local-only when choosing daemon vs. local

Matt Bell committed Nov 12, 2014 at 23:35 UTC b4735eb10bf16bea8a743f4ea286b9392dad41e3
1 file changed +1 -1
cmd/ipfs2/main.go
+1 -1
@@ -206,7 +206,7 @@ func callCommand(req cmds.Request, root *cmds.Command) (cmds.Response, error) {
206 if err != nil {
207 return nil, err
208 }
209 - remote := !found || !local
209 + remote := !isLocal(req.Command()) && !found || !local
210
211 log.Info("Checking if daemon is running...")
212 if remote && daemon.Locked(req.Context().ConfigRoot) {