mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-31 17:29:19 +02:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
820e281ac5
|
||
|
|
f167ace96b
|
+1
-1
@@ -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
@@ -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 '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user