https://gitlab.synchro.net/main/sbbs/-/commit/81ba23e1ff4ec892b5ca4e72
Modified Files:
docs/v322_new.md src/sbbs3/ftpsrvr.cpp websrvr.cpp
Log Message:
Web and FTP Servers: include the client IP in TLS log lines
The TLS (cryptlib) log lines of both servers gave only the socket number,
e.g. "0123 TLS dbg 'No data was read because the remote system closed the connection'", so finding which client a line was about meant matching it
up with the session's other lines.
Web Server: the lines now start with the server's usual "%04d %-5s [ip]" prefix: "0123 HTTPS [192.0.2.1] TLS dbg ...".
FTP Server: the lines now read "0123 [192.0.2.1] TLS dbg ...", matching
the server's "%04d [ip]" prefix. The address is the socket's peer, from getpeername(): GCES() is called from socket helpers and transfer threads
that have no session to take it from, and for a data connection the peer
is the one that connection is with. If the socket has no peer (already
closed), the line is logged as before.
The "TLS" word is kept, so existing log searches still match.
Fixes #1453
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net