Skip to content
Snippets Groups Projects
Commit f4e89aa0 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 475d34d5
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ var guest = options.guest && system.matchuser("guest"); ...@@ -24,7 +24,7 @@ var guest = options.guest && system.matchuser("guest");
if(!bbs.online) if(!bbs.online)
exit(); exit();
if(!console.autoterm) { if(!(console.autoterm&(USER_ANSI | USER_PETSCII | USER_UTF8))) {
console.inactivity_hangup = options.inactive_hangup; console.inactivity_hangup = options.inactive_hangup;
log(LOG_NOTICE, "terminal not detected, reducing inactivity hang-up timeout to " + console.inactivity_hangup + " seconds"); 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.
Please register or to comment