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

cmd/lncli: correctly set modified macaroon path
This commit is contained in:
Olaoluwa Osuntokun 2018-03-13 12:33:59 -07:00 committed by GitHub
commit d75e2f76cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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))
}
}