macaroons: add ip range checker

This commit is contained in:
Slyghtning committed 2025-03-13 09:57:39 -05:00
1 parent 6531d45050
commit ea9a5a2a71
2 files changed
+66 -4

No files matched your search

+1 -1
View File
@@ -472,7 +472,7 @@ func (d *DefaultWalletImpl) BuildWalletConfig(ctx context.Context,
}
macaroonService, err = macaroons.NewService(
rootKeyStore, "lnd", walletInitParams.StatelessInit,
macaroons.IPLockChecker,
macaroons.IPLockChecker, macaroons.IPRangeLockChecker,
macaroons.CustomChecker(interceptorChain),
)
if err != nil {