svnno****@sourc*****
svnno****@sourc*****
2010年 3月 11日 (木) 20:41:33 JST
Revision: 3809 http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3809 Author: maya Date: 2010-03-11 20:41:33 +0900 (Thu, 11 Mar 2010) Log Message: ----------- Remote to Local 転送の設定を文字列にする処理に不足があったので修正 Modified Paths: -------------- trunk/ttssh2/ttxssh/fwdui.c -------------- next part -------------- Modified: trunk/ttssh2/ttxssh/fwdui.c =================================================================== --- trunk/ttssh2/ttxssh/fwdui.c 2010-03-10 15:27:58 UTC (rev 3808) +++ trunk/ttssh2/ttxssh/fwdui.c 2010-03-11 11:41:33 UTC (rev 3809) @@ -565,9 +565,17 @@ } break; case FWD_REMOTE_TO_LOCAL: - _snprintf_s(str, str_remaining, _TRUNCATE, "R%s:%s:%s", - spec->from_port_name, spec->to_host, - spec->to_port_name); + if (strcmp(spec->bind_address,"127.0.0.1") == 0) { + _snprintf_s(str, str_remaining, _TRUNCATE, "R%s:%s:%s", + spec->from_port_name, spec->to_host, + spec->to_port_name); + } + else { + _snprintf_s(str, str_remaining, _TRUNCATE, "R%s:%s:%s:%s", + spec->bind_address, + spec->from_port_name, spec->to_host, + spec->to_port_name); + } break; case FWD_REMOTE_X11_TO_LOCAL: _snprintf_s(str, str_remaining, _TRUNCATE, "X");