UNPKG

rsshub

Version:
17 lines (15 loc) 594 B
import { t as config } from "./config-C37vj7VH.mjs"; import { t as config_not_found_default } from "./config-not-found-Dyp3RlZZ.mjs"; //#region lib/routes/91porn/utils.ts const allowDomain = new Set([ "91porn.com", "www.91porn.com", "0122.91p30.com", "www.91zuixindizhi.com", "w1218.91p46.com" ]); const domainValidation = (domain) => { if (!config.feature.allow_user_supply_unsafe_domain && !allowDomain.has(domain)) throw new config_not_found_default(`This RSS is disabled unless 'ALLOW_USER_SUPPLY_UNSAFE_DOMAIN' is set to 'true'.`); }; //#endregion export { domainValidation as t };