summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-13 23:43:18 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-13 23:43:18 +0800
commit450d9a162524172df616e9b3e357474577a39edf (patch)
treef6a73a2eb6b3c524698c1db074d516881da9500e /mbbsd
parent346efecb76f32b8e76732b45304cd7800a08d6e4 (diff)
downloadpttbbs-450d9a162524172df616e9b3e357474577a39edf.tar
pttbbs-450d9a162524172df616e9b3e357474577a39edf.tar.gz
pttbbs-450d9a162524172df616e9b3e357474577a39edf.tar.bz2
pttbbs-450d9a162524172df616e9b3e357474577a39edf.tar.lz
pttbbs-450d9a162524172df616e9b3e357474577a39edf.tar.xz
pttbbs-450d9a162524172df616e9b3e357474577a39edf.tar.zst
pttbbs-450d9a162524172df616e9b3e357474577a39edf.zip
* update bind port info in tunnel mode
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4598 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/mbbsd.c3
1 files changed, 2 insertions, 1 deletions
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;