mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 06:01:48 +02:00
lnd+macaroons: specify location when creating macaroon service
To allow the macaroon service to be used in other projects, we want the location to be passed in as a parameter instead of being hard coded.
This commit is contained in:
2
lnd.go
2
lnd.go
@@ -393,7 +393,7 @@ func Main(cfg *Config, lisCfg ListenerCfg, shutdownChan <-chan struct{}) error {
|
||||
if !cfg.NoMacaroons {
|
||||
// Create the macaroon authentication/authorization service.
|
||||
macaroonService, err = macaroons.NewService(
|
||||
cfg.networkDir, macaroons.IPLockChecker,
|
||||
cfg.networkDir, "lnd", macaroons.IPLockChecker,
|
||||
)
|
||||
if err != nil {
|
||||
err := fmt.Errorf("unable to set up macaroon "+
|
||||
|
Reference in New Issue
Block a user