headers =`200 OK Connection: Keep-Alive wtv-expire-all: wtv-home:/splash wtv-expire-all: wtv-flashrom: Content-type: text/html` if (request_headers.query.url) headers += "\nwtv-visit: " + request_headers.query.url; if (ssid_sessions[socket.ssid].get('box-does-psuedo-encryption')) { var cryptstatus = "Psuedo-encrypted"; } else { var cryptstatus = ((socket_sessions[socket.id].secure === true) ? "Encrypted" : "Not Encrypted") } data = ` Home for ${ssid_sessions[socket.ssid].getSessionData("subscriber_username") || "minisrv"} Welcome to ${z_title}`; if (ssid_sessions[socket.ssid].getSessionData("registered")) data += ", " + ssid_sessions[socket.ssid].getSessionData("subscriber_username") + "!"; data += "
"; if (minisrv_config.config.git_commit) data += "" + "  ".repeat(35) + "git revision " + minisrv_config.config.git_commit + "
"; data += ` Encryption Status: ${cryptstatus}
Connection Speed: &rate;

"; if (fs.existsSync(service_vaults[0] + "/" + service_name + "/home.zefie.html")) { data += fs.readFileSync(service_vaults[0] + "/" + service_name + "/home.zefie.html", { 'encoding': 'utf8' }); }