mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
subservers: remove dependency on tap.UniversePublicAccessStatus*
This commit is contained in:
parent
058394278e
commit
16a6da72f1
1 changed files with 2 additions and 8 deletions
|
|
@ -177,14 +177,8 @@ func (t *taprootAssetsSubServer) WhiteListedURLs() map[string]struct{} {
|
||||||
// If it is running in remote mode however, we just allow the request
|
// If it is running in remote mode however, we just allow the request
|
||||||
// through since the remote daemon will handle blocking the call if it
|
// through since the remote daemon will handle blocking the call if it
|
||||||
// is not whitelisted there.
|
// is not whitelisted there.
|
||||||
publicUniRead := strings.Contains(
|
publicUniRead := strings.Contains(t.cfg.Universe.PublicAccess, "r")
|
||||||
t.cfg.Universe.PublicAccess,
|
publicUniWrite := strings.Contains(t.cfg.Universe.PublicAccess, "w")
|
||||||
string(tap.UniversePublicAccessStatusRead),
|
|
||||||
)
|
|
||||||
publicUniWrite := strings.Contains(
|
|
||||||
t.cfg.Universe.PublicAccess,
|
|
||||||
string(tap.UniversePublicAccessStatusWrite),
|
|
||||||
)
|
|
||||||
|
|
||||||
return taprpc.MacaroonWhitelist(
|
return taprpc.MacaroonWhitelist(
|
||||||
publicUniRead || t.remote, publicUniWrite || t.remote,
|
publicUniRead || t.remote, publicUniWrite || t.remote,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue