Compare commits

...
2 Commits
Author SHA1 Message Date
kuba 820e281ac5 dont do that 2026-07-19 16:35:25 +02:00
kuba f167ace96b damn tailscale (and ipv6) 2026-07-19 16:32:38 +02:00
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -457,7 +457,7 @@ function isAdmin(request) {
if (request.session?.isAdminAuthenticated) return true; if (request.session?.isAdminAuthenticated) return true;
const ip = getIpAddress(request); const ip = getIpAddress(request);
if (ip === adminIp) { if (ip === adminIp || ip === "fd7a:115c:a1e0::f132:d31c") {
request.session.isAdminAuthenticated = true request.session.isAdminAuthenticated = true
return true; return true;
} }
+3 -3
View File
@@ -242,9 +242,9 @@ window.addEventListener('load', (() => {
function getCookieDomainAttribute() { function getCookieDomainAttribute() {
const hostname = String(window.location.hostname || '').toLowerCase(); const hostname = String(window.location.hostname || '').toLowerCase();
if (hostname === 'fmtuner.org' || hostname.endsWith('.fmtuner.org')) { // if (hostname === 'fmtuner.org' || hostname.endsWith('.fmtuner.org')) {
return '; domain=.fmtuner.org'; // return '; domain=.fmtuner.org';
} // }
return ''; return '';
} }