Fixed tests.
This commit is contained in:
@@ -28,7 +28,7 @@ export function getIpAddress(headers: Headers) {
|
||||
const ip = headers.get(header);
|
||||
|
||||
if (header === 'x-forwarded-for') {
|
||||
return ip?.split[',']?.[0]?.trim();
|
||||
return ip?.split(',')?.[0]?.trim();
|
||||
}
|
||||
|
||||
if (header === 'forwarded') {
|
||||
|
||||
Reference in New Issue
Block a user