Add some protection against bad requests. Also bail if we can't start properly.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3870 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-04-26 23:05:02 +00:00
parent 2826efea56
commit 87224d2bb6
2 changed files with 71 additions and 10 deletions

View File

@ -603,6 +603,8 @@ loadSettings().then(function() {
httpd.registerSocketHandler("/app/socket", app.socket);
}).catch(function(error) {
print('Failed to load settings.');
print(error);
exit(1);
});
exports.getSessionProcessBlob = getSessionProcessBlob;