From 09722507c6c805c3382e89ee5842d81954b6d2c1 Mon Sep 17 00:00:00 2001 From: matty Date: Sun, 6 Jul 2025 02:47:35 +0000 Subject: [PATCH] housekeeping --- src/main.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.ts b/src/main.ts index c9f1493..7a907ce 100644 --- a/src/main.ts +++ b/src/main.ts @@ -132,6 +132,9 @@ const isFromWhitelistedDomain = (fqn: string): boolean => { if (envConfig.whitelistedDomains.includes(domain)) { return true; } + console.log( + `Rejecting prompt request from un-whitelisted domain: ${domain}` + ); return false; } catch (error: any) { console.error(`Error with domain check: ${error.message}`); @@ -280,4 +283,7 @@ console.log( envConfig.fetchInterval / 1000 } seconds.` ); +console.log( + `Accepting prompts from domains: ${envConfig.whitelistedDomains.join(", ")}` +); await beginFetchCycle();