- FlashROM Support for LC2 and newer. - FlashROM system can handle local files, or proxy from server (default). No need to have a local FlashROM collection! - Added 'verbosity' configuration option - Update HTML Mode to async fileRead - Config option for sending tellyscripts or not - Config option to mask SSIDs in console log - Update wtv-home:/home and wtv-home:/zefie - Update .gitignore - Add wtv-music:/demo/index courtesy of MattMan69 - Update HTML Mode to async fileRead - Update Raw TXT Mode to async fileRead - Replaced .async.js feature with defining `request_is_async` in standard .js script - Cleaned up code a bit - Moved global var 'query' to 'request_headers.query' - Tidied ServiceDeps - Upgraded wtv-log:/log to async, now also logs query arguments, saves to .txt for easier reading.
24 lines
801 B
JavaScript
24 lines
801 B
JavaScript
var challenge_response, challenge_header = '';
|
|
var gourl;
|
|
|
|
if (socket_session_data[socket.id].ssid !== null) {
|
|
if (request_headers["wtv-ticket"]) {
|
|
if (request_headers["wtv-ticket"].length > 8) {
|
|
DecodeTicket(request_headers["wtv-ticket"]);
|
|
socket_session_data[socket.id].wtvsec.ticket_b64 = request_headers["wtv-ticket"];
|
|
//socket_session_data[socket.id].secure == true;
|
|
}
|
|
} else if (socket_session_data[socket.id].wtvsec.ticket_b64 == null) {
|
|
// TODO: client should have a ticket and send it back by now, if not we should handle this correctly
|
|
}
|
|
}
|
|
|
|
headers = `200 OK
|
|
Connection: Keep-Alive
|
|
wtv-encrypted: true
|
|
wtv-ticket: `+socket_session_data[socket.id].wtvsec.ticket_b64+`
|
|
wtv-expire-all: htv-
|
|
wtv-home-url: wtv-home:/home?
|
|
wtv-visit: wtv-home:/splash?
|
|
Content-Type: text/html
|
|
`; |