From a3c727319b0b2a6f863f28d86065e50ac28e62fb Mon Sep 17 00:00:00 2001 From: localhost Date: Sun, 16 Nov 2025 11:08:02 +0100 Subject: [PATCH] fix query --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index ceb92d4..2e7ce0b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -15,8 +15,8 @@ app.use(transparency) app.use(video) app.use(websocket) app.use(html) -app.onRequest(({ set, path }: any) => { - set.headers['Onion-Location'] = 'http://tubey5btlzxkcjpxpj2c7irrbhvgu3noouobndafuhbw4i5ndvn4v7qd.onion' + path +app.onRequest(({ set, url }: any) => { + set.headers['Onion-Location'] = 'http://tubey5btlzxkcjpxpj2c7irrbhvgu3noouobndafuhbw4i5ndvn4v7qd.onion/' + url.split('/').at(-1) }) process.on('uncaughtException', err => {