Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config+frcli: fix macaroon & tls cert path parsing #192

Merged

Conversation

ellemouton
Copy link
Member

  1. Ensure that the faradayDirSet boolean is accurately set. Otherwise it is always true & so will always result in errors when the user provides their own macaroon path when they dont set the faraday dir.
  2. For frcli, ensure that the tls cert & macaroon paths are only overridden with the correct network namespace if the user has not explicitly defined them

Fixes #191

Set the `faradayDirSet` boolean before namespacing the directory with
the network. This fixes a bug where the user would _not_ set faradayDir
but would set the macaroon path and would run into the "faradaydir
overwrites macaroonpath..." error.
Only overwrite the default TLS cert and macaroon paths if the user has
not explicitly defined them.
Copy link
Member

@guggero guggero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix!

cmd/frcli/utils.go Show resolved Hide resolved
config.go Show resolved Hide resolved
Copy link
Member

@guggero guggero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, forgot that I didn't approve yet. LGTM 🎉

Copy link
Contributor

@ViktorTigerstrom ViktorTigerstrom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK LGTM 🚀! Thanks for the fix :)

@ViktorTigerstrom ViktorTigerstrom merged commit 242d5e5 into lightninglabs:master Aug 19, 2024
5 checks passed
@ellemouton ellemouton deleted the fixMacaroonPathParsing branch August 19, 2024 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to define --macaroonpath when starting service
3 participants