summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuebinm2021-12-27 12:34:09 +0100
committerstuebinm2021-12-27 12:34:09 +0100
commite081459b52e431286d0d7a259685c25a9efe27f7 (patch)
treebabcd883c3c8b8c77b9d361f96218ec55072079b
parentc56ffe0e9454b34992bc7ddcc25a2d1c9894128e (diff)
allow *.streamproxy.rc3.world
-rw-r--r--lib/Uris.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Uris.hs b/lib/Uris.hs
index 598aa46..5c2ad05 100644
--- a/lib/Uris.hs
+++ b/lib/Uris.hs
@@ -97,8 +97,9 @@ applySubsts s substs uri = do
pure (prefix <> rest)
Prefixed {..}
| 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)
Allowed _ domains -> if domain `elem` domains
+ || pack "streamproxy.rc3.world" `T.isSuffixOf` domain
then Right uri
else Left (DomainIsBlocked domains)