mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-05 18:40:56 +01:00
Fix these types for test
This commit is contained in:
parent
f77b3059b3
commit
6db4af6614
1 changed files with 3 additions and 3 deletions
|
@ -336,9 +336,9 @@ const versionRequest = async (request: IRequest) => {
|
||||||
tlsversion: (request.cf?.tlsVersion as string) ?? 'Unknown TLS Version',
|
tlsversion: (request.cf?.tlsVersion as string) ?? 'Unknown TLS Version',
|
||||||
ip:
|
ip:
|
||||||
request.headers.get('x-real-ip') ?? request.headers.get('cf-connecting-ip') ?? 'Unknown IP',
|
request.headers.get('x-real-ip') ?? request.headers.get('cf-connecting-ip') ?? 'Unknown IP',
|
||||||
city: request.cf?.city ?? 'Unknown City',
|
city: request.cf?.city as string ?? 'Unknown City',
|
||||||
region: request.cf?.region ?? request.cf?.country ?? 'Unknown Region',
|
region: request.cf?.region as string ?? request.cf?.country ?? 'Unknown Region',
|
||||||
country: request.cf?.country ?? 'Unknown Country',
|
country: request.cf?.country as string ?? 'Unknown Country',
|
||||||
asn: `AS${request.cf?.asn ?? '??'} (${request.cf?.asOrganization ?? 'Unknown ASN'})`,
|
asn: `AS${request.cf?.asn ?? '??'} (${request.cf?.asOrganization ?? 'Unknown ASN'})`,
|
||||||
ua: sanitizeText(request.headers.get('user-agent') ?? 'Unknown User Agent')
|
ua: sanitizeText(request.headers.get('user-agent') ?? 'Unknown User Agent')
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Add table
Reference in a new issue