Skip to content
Snippets Groups Projects
Commit e081459b authored by stuebinm's avatar stuebinm
Browse files

allow *.streamproxy.rc3.world

parent c56ffe0e
No related branches found
No related tags found
No related merge requests found
Pipeline #12606 passed
...@@ -97,8 +97,9 @@ applySubsts s substs uri = do ...@@ -97,8 +97,9 @@ applySubsts s substs uri = do
pure (prefix <> rest) pure (prefix <> rest)
Prefixed {..} Prefixed {..}
| domain `elem` blocked -> Left IsBlocked | domain `elem` blocked -> Left IsBlocked
| domain `elem` allowed -> Right uri | domain `elem` allowed || pack "streamproxy.rc3.world" `T.isSuffixOf` domain -> Right uri
| otherwise -> Right (prefix <> URI.encodeText uri) | otherwise -> Right (prefix <> URI.encodeText uri)
Allowed _ domains -> if domain `elem` domains Allowed _ domains -> if domain `elem` domains
|| pack "streamproxy.rc3.world" `T.isSuffixOf` domain
then Right uri then Right uri
else Left (DomainIsBlocked domains) else Left (DomainIsBlocked domains)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment