revise audit log stream PR

This commit is contained in:
Maidul Islam
2024-09-08 15:04:30 -04:00
parent 3707b75349
commit c8dc29d59b
4 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
export { isDisposableEmail } from "./validate-email";
export { validateLocalIps } from "./validate-url";
export { blockLocalAndPrivateIpAddresses } from "./validate-url";
+1 -1
View File
@@ -1,7 +1,7 @@
import { getConfig } from "../config/env";
import { BadRequestError } from "../errors";
export const validateLocalIps = (url: string) => {
export const blockLocalAndPrivateIpAddresses = (url: string) => {
const validUrl = new URL(url);
const appCfg = getConfig();
// on cloud local ips are not allowed