From 70e6be44096ac2a01774c95c85ea85a341c2b7c0 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Mon, 27 Dec 2021 12:34:09 +0100 Subject: allow *.streamproxy.rc3.world --- lib/Uris.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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) -- cgit v1.2.3