mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-29 16:29:19 +02:00
damn tailscale (and ipv6)
This commit is contained in:
+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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user