chore: update getCurrentDomain to return undefined when not allowing localhost
This commit is contained in:
@@ -18,11 +18,7 @@ export async function maybeScheduleNextAiringEpisode(
|
||||
aniListId: number,
|
||||
) {
|
||||
const domain = getCurrentDomain(req);
|
||||
if (
|
||||
domain.includes("localhost") ||
|
||||
domain.includes("127.0.0.1") ||
|
||||
domain.includes("192.168.1")
|
||||
) {
|
||||
if (!domain) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user