update ultra willies to new domain
This commit is contained in:
@@ -19,8 +19,8 @@ if (!minisrv_config.services[service_name].use_zefie_server) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var options = {
|
var options = {
|
||||||
host: "wtv.zefie.com",
|
host: "roms.minisrv.dev",
|
||||||
path: "/willie.php?minisrv=true&service_name="+escape(service_name)+"&pflash=" + session_data.get("wtv-client-rom-type") + proxy_query,
|
path: "/?minisrv=true&service_name="+escape(service_name)+"&pflash=" + session_data.get("wtv-client-rom-type") + proxy_query,
|
||||||
timeout: 5000,
|
timeout: 5000,
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -142,10 +142,10 @@ class WTVFlashrom {
|
|||||||
if (!self.fs.existsSync(flashrom_file_path)) flashrom_file_path = null;
|
if (!self.fs.existsSync(flashrom_file_path)) flashrom_file_path = null;
|
||||||
});
|
});
|
||||||
if (this.use_zefie_server && !flashrom_file_path) {
|
if (this.use_zefie_server && !flashrom_file_path) {
|
||||||
// get flashrom files from archive.midnightchannel.net
|
// get flashrom files from roms.minisrv.dev
|
||||||
var options = {
|
var options = {
|
||||||
host: "archive.midnightchannel.net",
|
host: "roms.minisrv.dev",
|
||||||
path: "/zefie/files/wtv-flashrom/" + request_path,
|
path: "/" + request_path,
|
||||||
timeout: 5000,
|
timeout: 5000,
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
}
|
}
|
||||||
@@ -164,13 +164,13 @@ class WTVFlashrom {
|
|||||||
})
|
})
|
||||||
|
|
||||||
res.on('end', function () {
|
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) {
|
if (res.statusCode == 200) {
|
||||||
var data = Buffer.from(data_hex, 'hex');
|
var data = Buffer.from(data_hex, 'hex');
|
||||||
} else if (res.statusCode == 206) {
|
} else if (res.statusCode == 206) {
|
||||||
var data = self.getFlashromInfo(Buffer.from(data_hex, 'hex'), request_path);
|
var data = self.getFlashromInfo(Buffer.from(data_hex, 'hex'), request_path);
|
||||||
} else if (res.statusCode == 404) {
|
} 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];
|
headers = errpage[0];
|
||||||
var data = errpage[1];
|
var data = errpage[1];
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user