From 450d9a162524172df616e9b3e357474577a39edf Mon Sep 17 00:00:00 2001 From: piaip Date: Sat, 13 Jun 2009 15:43:18 +0000 Subject: * update bind port info in tunnel mode git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4598 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mbbsd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mbbsd') diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 5137f126..e8881b99 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1981,8 +1981,9 @@ tunnel_login(char *argv0, struct ProgramOption *option) close(csock); dup2(0, 1); - strlcpy(fromhost, dat.hostip, sizeof(fromhost)); strlcpy(option->flag_user, dat.userid, sizeof(option->flag_user)); + strlcpy(fromhost, dat.hostip, sizeof(fromhost)); + listen_port = atoi(dat.port); option->term_width = dat.t_cols; option->term_height = dat.t_lines; -- cgit v1.2.3