chore:little fixes and formating and linting and patches
This commit is contained in:
@@ -90,7 +90,7 @@ function isValidIp(ip: string): boolean {
|
||||
|
||||
export function getClientIpFromHeaders(
|
||||
headers: Record<string, string | string[] | undefined> | Headers,
|
||||
overrideHeaderName?: string,
|
||||
overrideHeaderName?: string
|
||||
): {
|
||||
ip: string;
|
||||
header: string;
|
||||
@@ -116,7 +116,9 @@ export function getClientIpFromHeaders(
|
||||
}
|
||||
}
|
||||
|
||||
if (!value) continue;
|
||||
if (!value) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Handle x-forwarded-for (comma separated)
|
||||
if (headerName === 'x-forwarded-for') {
|
||||
|
||||
Reference in New Issue
Block a user