Skip to content

Commit 6a59496

Browse files
authored
Merge pull request #598 from ellemouton/fixMacPathConstruction
config: fix macaroon path construction
2 parents ba78616 + c2e34d7 commit 6a59496

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

config.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -440,12 +440,10 @@ func loadAndValidateConfig(interceptor signal.Interceptor) (*Config, error) {
440440
}
441441
}
442442

443-
if cfg.Network != DefaultNetwork {
444-
if cfg.MacaroonPath == DefaultMacaroonPath {
445-
cfg.MacaroonPath = filepath.Join(
446-
litDir, cfg.Network, DefaultMacaroonFilename,
447-
)
448-
}
443+
if cfg.MacaroonPath == DefaultMacaroonPath {
444+
cfg.MacaroonPath = filepath.Join(
445+
litDir, cfg.Network, DefaultMacaroonFilename,
446+
)
449447
}
450448

451449
// Initiate our listeners. For now, we only support listening on one

0 commit comments

Comments
 (0)