Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, for more info) to build successfully.

Commit 0260471d authored by rswindell's avatar rswindell
Browse files

We need to expand telnet IACs contained in passthru socket data received from

external programs (when in Telnet mode).
parent 7931b9a5
......@@ -2179,7 +2179,13 @@ void passthru_thread(void* arg)
if(sbbs->xtrn_mode & EX_BIN) {
if(!RingBufWrite(&sbbs->outbuf, (BYTE*)inbuf, rd)) {
BYTE telnet_buf[sizeof(inbuf) * 2];
BYTE* bp = (BYTE*)inbuf;
rd = telnet_expand((BYTE*)inbuf, rd, telnet_buf, sizeof(telnet_buf), &bp);
if(!RingBufWrite(&sbbs->outbuf, bp, rd)) {
lprintf(LOG_ERR,"Cannot pass from passthru socket to outbuf");
......@@ -5717,7 +5723,7 @@ NO_SSH:
new_node->telnet_mode|=TELNET_MODE_OFF; // RLogin does not use Telnet commands
if(true) {
/* TODO: IPv6? */
SOCKET tmp_sock;
SOCKADDR_IN tmp_addr={0};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment