summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuebinm2021-12-27 12:34:09 +0100
committerstuebinm2022-01-02 01:55:49 +0100
commit70e6be44096ac2a01774c95c85ea85a341c2b7c0 (patch)
treebabcd883c3c8b8c77b9d361f96218ec55072079b
parent3839365c752edd7a802f88c8ef6ea4154745ac98 (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)