cmd/lncli: correctly set modified macaroon path

This commit is contained in:
Wilmer Paulino 2018-03-13 12:17:49 -04:00
parent 3a53752d90
commit 5a2a4a26b6
No known key found for this signature in database
GPG Key ID: 6DF57B9F9514972F

@ -76,7 +76,7 @@ func getClientConn(ctx *cli.Context, skipMacaroons bool) *grpc.ClientConn {
macPath := cleanAndExpandPath(ctx.GlobalString("macaroonpath"))
if macPath == defaultMacaroonPath {
ctx.GlobalSet("no-macaroons",
ctx.GlobalSet("macaroonpath",
filepath.Join(lndDir, defaultMacaroonFilename))
}
}