fix: typo fix
All checks were successful
Update changelog / changelog (push) Successful in 26s

This commit is contained in:
Pc
2026-01-03 18:43:12 +01:00
parent 1d1379c776
commit fc0ee5a4d6

View File

@@ -26,7 +26,7 @@ const domainRedirectPlugin = (targetUrl: string, useSubdomains: boolean, debug:
// Przekieruj jeśli:
// 1. To subdomena localhosta (do testów)
// 2. LUB to subdomena ktty.is, a subdomeny są wyłączone
if ((isSubdomainOfLocalhost && hostname !== 'localhost') || (!useSubdomains && hostname !== targetHost && !isPureLocalhost)) {
if ((isSubdomainOfLocalhost && hostname !== 'localhost') || (useSubdomains && hostname !== targetHost && !isPureLocalhost)) {
if (debug) console.log(`[Redirect] Z ${hostname} na ${targetUrl}`);
res.writeHead(301, { Location: `${targetUrl}${req.url}` });