Skip to content
Snippets Groups Projects
Commit b05b2cc1 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Re-enable the short inactivity timeout for non-terminal connections (bots)

As of Oct-25-2018, the NO_EXASCII flag was set in the autoterm variable
when there was no ANSI terminal auto-detected. This defeated the short
inactivity timeout feature of login.js because it was checking specifically
for a zero-value autoterm.

So change this logic to check for no ANSI, PETSCII, or UTF-8 (the 3 indicators
of a valid terminal) - though I suppose PETSCII is questionable (it's not
actually auto-detected, just a non-standard port usually).
parent 9bf4b7bb
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ var guest = options.guest && system.matchuser("guest");
if(!bbs.online)
exit();
if(!console.autoterm) {
if(!(console.autoterm&(USER_ANSI | USER_PETSCII | USER_UTF8))) {
console.inactivity_hangup = options.inactive_hangup;
log(LOG_NOTICE, "terminal not detected, reducing inactivity hang-up timeout to " + console.inactivity_hangup + " seconds");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment