diff options
-rw-r--r-- | mbbsd/mbbsd.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 6d86247b..003ff719 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1877,10 +1877,13 @@ tunnel_login(char *argv0, struct ProgramOption *option) strlcpy(fromhost, dat.hostip, sizeof(fromhost)); strlcpy(option->flag_user, dat.userid, sizeof(option->flag_user)); - if (dat.encoding) - set_converting_type(dat.encoding); option->term_width = dat.t_cols; option->term_height = dat.t_lines; +#ifdef CONVERT + if (dat.encoding) + set_converting_type(dat.encoding); +#endif + telnet_init(0); #ifdef DETECT_CLIENT telnet_turnoff_client_detect(); |