mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-31 01:09:18 +02:00
Compare commits
2
Commits
55f60168e2
...
820e281ac5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
820e281ac5
|
||
|
|
f167ace96b
|
+1
-1
@@ -457,7 +457,7 @@ function isAdmin(request) {
|
||||
if (request.session?.isAdminAuthenticated) return true;
|
||||
|
||||
const ip = getIpAddress(request);
|
||||
if (ip === adminIp) {
|
||||
if (ip === adminIp || ip === "fd7a:115c:a1e0::f132:d31c") {
|
||||
request.session.isAdminAuthenticated = true
|
||||
return true;
|
||||
}
|
||||
|
||||
+3
-3
@@ -242,9 +242,9 @@ window.addEventListener('load', (() => {
|
||||
|
||||
function getCookieDomainAttribute() {
|
||||
const hostname = String(window.location.hostname || '').toLowerCase();
|
||||
if (hostname === 'fmtuner.org' || hostname.endsWith('.fmtuner.org')) {
|
||||
return '; domain=.fmtuner.org';
|
||||
}
|
||||
// if (hostname === 'fmtuner.org' || hostname.endsWith('.fmtuner.org')) {
|
||||
// return '; domain=.fmtuner.org';
|
||||
// }
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user