aboutsummaryrefslogtreecommitdiff
path: root/src/telnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/telnet.c')
-rw-r--r--src/telnet.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/telnet.c b/src/telnet.c
index 1838b45..377f5cf 100644
--- a/src/telnet.c
+++ b/src/telnet.c
@@ -37,7 +37,14 @@ void telnet_handle_command(const unsigned char *buf)
goto found;
}
}
- printf("??? ");
+ switch(c)
+ {
+ case IP:
+ exit(0);
+ default:
+ break;
+ }
+ printf("???: %d ", c);
found:
++buf;
@@ -74,8 +81,9 @@ void telnet_init(void)
IAC, DONT, NAWS,
IAC, WONT, STATUS,
IAC, DONT, STATUS,
- IAC, DO, ECHO,
+ IAC, DO, ECHO,
IAC, WONT, ECHO,
+ IAC, DONT, LINEMODE,
};
out_raw(init_seq, ARRAYLEN(init_seq));
}