fix query

This commit is contained in:
localhost 2025-11-16 11:08:02 +01:00
parent c71f03dcee
commit a3c727319b
1 changed files with 2 additions and 2 deletions

View File

@ -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 => {