subservers: remove dependency on tap.UniversePublicAccessStatus*

This commit is contained in:
ffranr 2026-02-12 16:06:44 +00:00
parent 058394278e
commit 16a6da72f1
No known key found for this signature in database
GPG key ID: C4A995ED1B728904

View file

@ -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,