From 628e16203b2ae82b88b4287430b58d5b4c1bf1f2 Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Sun, 10 Sep 2023 11:15:09 -0400 Subject: [PATCH] Workaround for strange itty-router v4 test issues --- src/worker.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/worker.ts b/src/worker.ts index 8f33783..73d6e49 100644 --- a/src/worker.ts +++ b/src/worker.ts @@ -342,9 +342,9 @@ const versionRequest = async (request: IRequest) => { return new Response( Strings.VERSION_HTML.format({ rtt: request.cf?.clientTcpRtt ? `🏓 ${request.cf.clientTcpRtt} ms RTT` : '', - colo: request.cf?.colo ?? '??', - httpversion: request.cf?.httpProtocol ?? 'Unknown HTTP Version', - tlsversion: request.cf?.tlsVersion ?? 'Unknown TLS Version', + colo: request.cf?.colo as string ?? '??', + httpversion: request.cf?.httpProtocol as string ?? 'Unknown HTTP Version', + tlsversion: request.cf?.tlsVersion as string ?? 'Unknown TLS Version', ip: request.headers.get('x-real-ip') ?? request.headers.get('cf-connecting-ip') ??