mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
config: fix macaroon path construction
Fix the macaroon path construction so that even if the network is not mainnet, the path gets constructed correctly from a user specified "--lit.dir" flag.
This commit is contained in:
parent
ba78616eb9
commit
c2e34d7138
1 changed files with 4 additions and 6 deletions
10
config.go
10
config.go
|
|
@ -440,12 +440,10 @@ func loadAndValidateConfig(interceptor signal.Interceptor) (*Config, error) {
|
|||
}
|
||||
}
|
||||
|
||||
if cfg.Network != DefaultNetwork {
|
||||
if cfg.MacaroonPath == DefaultMacaroonPath {
|
||||
cfg.MacaroonPath = filepath.Join(
|
||||
litDir, cfg.Network, DefaultMacaroonFilename,
|
||||
)
|
||||
}
|
||||
if cfg.MacaroonPath == DefaultMacaroonPath {
|
||||
cfg.MacaroonPath = filepath.Join(
|
||||
litDir, cfg.Network, DefaultMacaroonFilename,
|
||||
)
|
||||
}
|
||||
|
||||
// Initiate our listeners. For now, we only support listening on one
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue