|
|
|
@ -36,6 +36,7 @@ export const GET: RequestHandler = async (event) => {
|
|
|
|
<html lang="es">
|
|
|
|
<html lang="es">
|
|
|
|
<head>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
|
|
|
|
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
|
|
|
<title>Acceder</title>
|
|
|
|
<title>Acceder</title>
|
|
|
|
<meta name="robots" content="noindex,nofollow" />
|
|
|
|
<meta name="robots" content="noindex,nofollow" />
|
|
|
|
<meta name="referrer" content="no-referrer" />
|
|
|
|
<meta name="referrer" content="no-referrer" />
|
|
|
|
@ -147,7 +148,7 @@ export const POST: RequestHandler = async (event) => {
|
|
|
|
// @ts-ignore
|
|
|
|
// @ts-ignore
|
|
|
|
ip = event.getClientAddress() || null;
|
|
|
|
ip = event.getClientAddress() || null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch {}
|
|
|
|
} catch { }
|
|
|
|
if (!ip) {
|
|
|
|
if (!ip) {
|
|
|
|
const fwd = event.request.headers.get('x-forwarded-for');
|
|
|
|
const fwd = event.request.headers.get('x-forwarded-for');
|
|
|
|
ip = fwd ? fwd.split(',')[0].trim() : null;
|
|
|
|
ip = fwd ? fwd.split(',')[0].trim() : null;
|
|
|
|
|