only process .rom and .brom as flashrom if the service is flagged as a flashrom service

This commit is contained in:
zefie
2026-04-23 16:29:04 -04:00
parent dc12741c07
commit 86be3fd847
2 changed files with 3 additions and 2 deletions

View File

@@ -791,7 +791,7 @@ async function processPath(socket, service_vault_file_path, request_headers = []
request_headers.service_file_path = service_vault_file_path;
request_headers.raw_file = true;
// process flashroms
if (wtvshared.getFileExt(service_vault_file_path).toLowerCase() === "rom" || wtvshared.getFileExt(service_vault_file_path).toLowerCase() === "brom") {
if (minisrv_config.services[service_name].is_flashrom_service && (wtvshared.getFileExt(service_vault_file_path).toLowerCase() === "rom" || wtvshared.getFileExt(service_vault_file_path).toLowerCase() === "brom")) {
let bf0app_update = false;
const request_path = request_headers.request_url.replace(service_name + ":/", "");
const romtype = ssid_sessions[socket.ssid].get("wtv-client-rom-type");

View File

@@ -234,7 +234,8 @@
"catchall_file_name": "content-serve.js", // catchall for ROM part files. Best left untouched
"modules": [
"WTVFlashrom"
]
],
"is_flashrom_service": true
},
"wtv-setup": {
// wtv-setup