diff --git a/lib/plugins/html/htmlBuilder.js b/lib/plugins/html/htmlBuilder.js
index fa1f87749..0ef793a1c 100644
--- a/lib/plugins/html/htmlBuilder.js
+++ b/lib/plugins/html/htmlBuilder.js
@@ -1,7 +1,7 @@
import { join } from 'node:path';
import osName from 'os-name';
import { promisify } from 'node:util';
-import { platform } from 'node:os';
+import { platform, hostname } from 'node:os';
import { createRequire } from 'node:module';
import { fileURLToPath } from 'node:url';
@@ -287,7 +287,6 @@ export class HTMLBuilder {
options
)
: [];
-
let rootPath = this.storageManager.rootPathFromUrl(url, daurlAlias);
let data = {
daurl: url,
@@ -454,6 +453,7 @@ export class HTMLBuilder {
pageTitle: name,
pageDescription: '',
browser,
+ hostname: hostname(),
cpuBenchmark,
windowSize,
os: osInfo,
diff --git a/lib/plugins/html/templates/settings.pug b/lib/plugins/html/templates/settings.pug
index cbb1a8626..98851f834 100644
--- a/lib/plugins/html/templates/settings.pug
+++ b/lib/plugins/html/templates/settings.pug
@@ -26,6 +26,10 @@ block content
tr
td Emulated mobile
td Yes
+ if hostname
+ tr
+ td Hostname
+ td #{hostname}
if cpuBenchmark
tr
td CPU benchmark