don't expose version on pc services if hide_minisrv_config is true

This commit is contained in:
zefie
2026-05-03 15:15:27 -04:00
parent 9d51abd9ab
commit 4347543ef7

View File

@@ -1,15 +1,17 @@
const minisrv_service_file = true; const minisrv_service_file = true;
const title = minisrv_config.config.hide_minisrv_version ? "zefie's minisrv PC Services" : `zefie minisrv v${minisrv_config.version} PC Services`;
headers = `200 OK headers = `200 OK
Content-Type: text/html` Content-Type: text/html`
data = `<html> data = `<html>
<head> <head>
<title>zefie minisrv v${minisrv_config.version}</title> <title>${title}</title>
</head> </head>
<body bgcolor="#000000" text="#449944"> <body bgcolor="#000000" text="#449944">
<p> <p>
Welcome to the zefie minisrv v${minisrv_config.version} PC Services Welcome to ${title}
</p> </p>
<hr> <hr>
<a href="/viewergen/">WebTV Viewer Generator</a><br> <a href="/viewergen/">WebTV Viewer Generator</a><br>