mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 04:38:28 +00:00
Fix atob issue when xff is undefined
Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
@@ -714,7 +714,7 @@ function addAdvancedInfo() {
|
|||||||
const advancedInfoTarget = $("#advanced-info");
|
const advancedInfoTarget = $("#advanced-info");
|
||||||
const isTLS = advancedInfoSource.data("tls");
|
const isTLS = advancedInfoSource.data("tls");
|
||||||
const clientIP = advancedInfoSource.data("client-ip");
|
const clientIP = advancedInfoSource.data("client-ip");
|
||||||
const XForwardedFor = window.atob(advancedInfoSource.data("xff"));
|
const XForwardedFor = window.atob(advancedInfoSource.data("xff") ?? "");
|
||||||
const starttime = parseFloat(advancedInfoSource.data("starttime"));
|
const starttime = parseFloat(advancedInfoSource.data("starttime"));
|
||||||
const endtime = parseFloat(advancedInfoSource.data("endtime"));
|
const endtime = parseFloat(advancedInfoSource.data("endtime"));
|
||||||
const totaltime = 1e3 * (endtime - starttime);
|
const totaltime = 1e3 * (endtime - starttime);
|
||||||
|
|||||||
Reference in New Issue
Block a user