summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index ff9188d8..6d86247b 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -1853,6 +1853,8 @@ tunnel_login(char *argv0, struct ProgramOption *option)
towrite(tunnel, &success, sizeof(success)) < sizeof(success))
return 0;
+ assert(dat.cb == sizeof(dat));
+
// optimize connection
set_connection_opt(csock);
@@ -1880,6 +1882,10 @@ tunnel_login(char *argv0, struct ProgramOption *option)
option->term_width = dat.t_cols;
option->term_height = dat.t_lines;
telnet_init(0);
+#ifdef DETECT_CLIENT
+ telnet_turnoff_client_detect();
+ client_code = dat.client_code; // use the client code detected by remote daemon
+#endif
return 1;
}