Merge pull request #833 from wilmerpaulino/fix-macaroon-path

cmd/lncli: correctly set modified macaroon path
This commit is contained in:
Olaoluwa Osuntokun authored and GitHub committed 2018-03-13 12:33:59 -07:00
commit d75e2f76cc
1 file changed
+1 -1
+1 -1
View File
@@ -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))
}
}