update ultra willies to new domain

This commit is contained in:
zefie
2024-05-04 12:54:26 -04:00
parent 95bd52d673
commit 4e5adefb7b
2 changed files with 7 additions and 7 deletions

View File

@@ -19,8 +19,8 @@ if (!minisrv_config.services[service_name].use_zefie_server) {
}
var options = {
host: "wtv.zefie.com",
path: "/willie.php?minisrv=true&service_name="+escape(service_name)+"&pflash=" + session_data.get("wtv-client-rom-type") + proxy_query,
host: "roms.minisrv.dev",
path: "/?minisrv=true&service_name="+escape(service_name)+"&pflash=" + session_data.get("wtv-client-rom-type") + proxy_query,
timeout: 5000,
method: 'GET'
}

View File

@@ -142,10 +142,10 @@ class WTVFlashrom {
if (!self.fs.existsSync(flashrom_file_path)) flashrom_file_path = null;
});
if (this.use_zefie_server && !flashrom_file_path) {
// get flashrom files from archive.midnightchannel.net
// get flashrom files from roms.minisrv.dev
var options = {
host: "archive.midnightchannel.net",
path: "/zefie/files/wtv-flashrom/" + request_path,
host: "roms.minisrv.dev",
path: "/" + request_path,
timeout: 5000,
method: 'GET'
}
@@ -164,13 +164,13 @@ class WTVFlashrom {
})
res.on('end', function () {
if (self.minisrv_config.config.debug_flags.debug) console.log(` * Zefie's FlashROM Server HTTP Status: ${res.statusCode} ${res.statusMessage}`)
if (self.minisrv_config.config.debug_flags.debug) console.log(` * minisrv FlashROM Server HTTP Status: ${res.statusCode} ${res.statusMessage}`)
if (res.statusCode == 200) {
var data = Buffer.from(data_hex, 'hex');
} else if (res.statusCode == 206) {
var data = self.getFlashromInfo(Buffer.from(data_hex, 'hex'), request_path);
} else if (res.statusCode == 404) {
var errpage = self.wtvshared.doErrorPage(404, "The service could not find the requested ROM on zefie's server.")
var errpage = self.wtvshared.doErrorPage(404, "The service could not find the requested ROM on the minisrv FlashROM server.")
headers = errpage[0];
var data = errpage[1];
} else {