Skip to content

Commit

Permalink
Update collector.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Vahid Farid committed May 30, 2024
1 parent b310c45 commit 348f181
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/collector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ export async function GetConfigList(url: URL, env: Env): Promise<Array<Config>>
protocols = await env.settings.get("Protocols").then(val => {return val ? val.split("\n") : []})
}
const blockPorn = await env.settings.get("BlockPorn") == "yes"
const limitCountries = ((await env.settings.get("Countries"))?.split(",") || []).length > 0

if (blockPorn) {
if (blockPorn || limitCountries) {
protocols = ["built-in-vless"]
maxConfigs = 0
}
Expand Down

0 comments on commit 348f181

Please sign in to comment.