feat: resolved gateway verify issue and validation check

This commit is contained in:
=
2025-06-02 15:40:32 +05:30
parent 96e9bc3b2f
commit 9eb98dd276
2 changed files with 3 additions and 1 deletions
@@ -11,6 +11,8 @@ export const verifyHostInputValidity = async (host: string, isGateway = false) =
if (appCfg.isDevelopmentMode) return [host];
if (isGateway) return [host];
const reservedHosts = [appCfg.DB_HOST || getDbConnectionHost(appCfg.DB_CONNECTION_URI)].concat(
(appCfg.DB_READ_REPLICAS || []).map((el) => getDbConnectionHost(el.DB_CONNECTION_URI)),
getDbConnectionHost(appCfg.REDIS_URL),