switch old unused whitelist to a blacklist for modern solution

This commit is contained in:
zefie
2025-02-15 10:29:01 -05:00
parent 8d23f850e7
commit a2a33453fb
2 changed files with 9 additions and 11 deletions

View File

@@ -70,15 +70,13 @@ if (session_data.data_store.wtvsec_login) {
send_tellyscript = false; send_tellyscript = false;
} }
} }
if (minisrv_config.services[service_name].tellyscript_ssid_blacklist) {
send_tellyscript = (minisrv_config.services[service_name].tellyscript_ssid_blacklist.findIndex(element => element == socket.ssid) == -1)
}
if (send_tellyscript) { if (send_tellyscript) {
if (minisrv_config.services[service_name].send_tellyscript_ssid_whitelist) {
var send_telly_to_ssid = (minisrv_config.services[service_name].send_tellyscript_ssid_whitelist.findIndex(element => element == socket.ssid) != -1)
if (send_telly_to_ssid) {
romtype = session_data.get("wtv-client-rom-type"); romtype = session_data.get("wtv-client-rom-type");
}
} else {
romtype = session_data.get("wtv-client-rom-type");
}
switch (romtype) { switch (romtype) {
case "US-LC2-disk-0MB-8MB": case "US-LC2-disk-0MB-8MB":
case "US-LC2-disk-0MB-8MB-softmodem-CPU5230": case "US-LC2-disk-0MB-8MB-softmodem-CPU5230":

View File

@@ -70,8 +70,8 @@
"services": { "services": {
"wtv-1800": { "wtv-1800": {
"send_tellyscripts": true, "send_tellyscripts": true,
"send_tellyscript_ssid_whitelist": [ "tellyscript_ssid_blacklist": [
// send only these SSIDs a tellyscript // do not send these SSIDs a tellyscript
"8100000000000000", "8100000000000000",
"8120000000000000" "8120000000000000"
] ]