diff --git a/lib/Uris.hs b/lib/Uris.hs index 598aa46cd22dce4e17746d6837385c0728acdeb2..5c2ad0523d16a086a3bf65de6f5f3d09d2cfb313 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)