jcs
/subtext
/amendments
/session.c
Amendments on June 23, 2022
jcs made amendment
172
over 4 years ago
jcs made amendment
169
over 4 years ago
Amendments on June 22, 2022
telnet: Add trusted proxy IP setting for web gateway, unblock IPs
When a telnet connection comes from the configured proxy IP, allow the
REMOTE_ADDR environment variable passed to be used as the connection's
IP. Also don't auto-ban connections from the proxy.
Request TSPEED and store it as the session's terminal speed, just for
showing up in 'who' output.
Automatically unban IPs after 30 minutes by tracking the ban time.
jcs made amendment
164
over 4 years ago
Amendments on June 17, 2022
session: Don't run all session_printf formats through expand_template
session_expand_template is only needed for actual template views and
is pretty expensive. We only really need support for bolding and
resetting in session_printf.
This had the side effect of converting all bare \r's in session_printf
to \r\n, which screwed up ANSI output that was trying to just jump
back to the beginning of the line, like chat output.
Amendments on June 16, 2022
telnet: Make listening more resilient, add IP banning
MacTCP doesn't make it easy to detect when a listening socket has a
valid connection, or when it doesn't. Sometimes the connection is
accepted but then closed, sometimes TCPStatus returns a
connectionDoesntExist error, sometimes an open connection lingers in
TCP Wait. All of these were contributing to us no longer opening a
listening socket after some period of time accepting and closing
connections.
When bots try to login with a banned username, add their IP to a
ring buffer of IPs that we won't service. Unfortunately there is no
way to actually block these connections before they are accepted, so
we have to accept them, check the IP, and then close them right away.
jcs made amendment
145
over 4 years ago
Amendments on June 15, 2022
jcs made amendment
143
over 4 years ago
Amendments on June 13, 2022
jcs made amendment
142
over 4 years ago
Amendments on June 12, 2022
jcs made amendment
138
over 4 years ago
session: Close on banned username login attempt, track logged-in status
Ignore sessions that haven't logged in yet, and don't show guest
username in 'who' and logs.
Also show whether a user is a sysop in 'who'.
session: Turn sessions array into a static array of pointers
This doesn't need to keep moving around and resizing, walking it is
easy
Amendments on June 9, 2022
session: Fix newline handling in session_field_input
We may only get \r, but we need to send \r\n and add it to the buffer
as well.
Amendments on June 7, 2022
jcs made amendment
126
over 4 years ago
session: Implement persistent days-per-call tallying
Stub out file area response in main menu for now
sysop: Add user management
Also wire up new/signup login to direct there upon login, adding a
setting to the global config to allow it.
Amendments on June 6, 2022
jcs made amendment
121
over 4 years ago
Amendments on June 2, 2022
jcs made amendment
114
over 4 years ago
Amendments on May 24, 2022
mail: Rewrite, yet again
Implement pagination, move message actions to a sub-menu when viewing
a message by its index on the current page
Amendments on May 20, 2022
session_field_input: Add multiline support
Remove session_multiline_input since session_field_input just gets a
multiline flag. Also support backspacing at the beginning of a line
to jump back up to the end of the previous line.