housekeeping
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user