master #34

Merged
kibi merged 9 commits from master into 98 2026-07-28 14:26:52 +00:00
4 changed files with 29 additions and 9 deletions
Showing only changes of commit 096786516e - Show all commits

View File

@@ -498,8 +498,7 @@ process.on('uncaughtException', err => {
// Block incoming requests to .onion if Tor Hidden Service is explicitly disabled in config
if (cfg.websrv?.enable_tor_hs === false && lib.isOnionRequest(req)) {
res.writeHead(503, { 'Content-Type': 'text/plain; charset=utf-8' });
res.end('Tor Hidden Service is disabled on this server.');
res.writeHead(503).end();
req.url.pathname = '/tor_hs_disabled_bypass';
return;
}