smarter, defaults to 1 anyway

This commit is contained in:
zefie
2021-08-16 08:56:43 -04:00
parent 8d9d3e38eb
commit b957dca921

View File

@@ -32,7 +32,7 @@ if (socket.ssid) {
ssid_sessions[socket.ssid].data_store.wtvsec_login = new WTVSec(minisrv_config); ssid_sessions[socket.ssid].data_store.wtvsec_login = new WTVSec(minisrv_config);
ssid_sessions[socket.ssid].data_store.wtvsec_login.IssueChallenge(); ssid_sessions[socket.ssid].data_store.wtvsec_login.IssueChallenge();
ssid_sessions[socket.ssid].data_store.wtvsec_login.set_incarnation(request_headers["wtv-incarnation"] || 1); if (request_headers["wtv-incarnation"]) ssid_sessions[socket.ssid].data_store.wtvsec_login.set_incarnation(request_headers["wtv-incarnation"]);
} else { } else {
console.log(" * Something bad happened (we don't know the client ssid???)"); console.log(" * Something bad happened (we don't know the client ssid???)");
var errpage = wtvshared.doErrorPage(400) var errpage = wtvshared.doErrorPage(400)