fix last commit
This commit is contained in:
@@ -1471,6 +1471,7 @@ async function processRequest(socket, data_hex, skipSecure = false, encryptedReq
|
|||||||
if (!headers) return;
|
if (!headers) return;
|
||||||
|
|
||||||
if (headers["wtv-client-serial-number"] != null && socket.ssid == null) {
|
if (headers["wtv-client-serial-number"] != null && socket.ssid == null) {
|
||||||
|
socket.ssid = wtvshared.makeSafeSSID(headers["wtv-client-serial-number"]);
|
||||||
if (minisrv_config.config.require_valid_ssid) {
|
if (minisrv_config.config.require_valid_ssid) {
|
||||||
if (!wtvshared.checkSSID(headers["wtv-client-serial-number"])) {
|
if (!wtvshared.checkSSID(headers["wtv-client-serial-number"])) {
|
||||||
if (socket.ssid.substring(0, 5) != "1SEGA" && socket.ssid.substring(0, 8) != "MSTVSIMU") {
|
if (socket.ssid.substring(0, 5) != "1SEGA" && socket.ssid.substring(0, 8) != "MSTVSIMU") {
|
||||||
@@ -1483,7 +1484,6 @@ async function processRequest(socket, data_hex, skipSecure = false, encryptedReq
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
socket.ssid = wtvshared.makeSafeSSID(headers["wtv-client-serial-number"]);
|
|
||||||
if (socket.ssid != null) {
|
if (socket.ssid != null) {
|
||||||
if (!ssid_sessions[socket.ssid]) {
|
if (!ssid_sessions[socket.ssid]) {
|
||||||
ssid_sessions[socket.ssid] = new WTVClientSessionData(minisrv_config, socket.ssid);
|
ssid_sessions[socket.ssid] = new WTVClientSessionData(minisrv_config, socket.ssid);
|
||||||
|
|||||||
@@ -362,7 +362,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "RetroSite",
|
"title": "RetroSite",
|
||||||
"url": "http://retrosite.ga/",
|
"url": "http://retrosite.org/",
|
||||||
"image_type": "url",
|
"image_type": "url",
|
||||||
"image": "canned/retrosite.gif"
|
"image": "canned/retrosite.gif"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user