svnno****@sourc*****
svnno****@sourc*****
2010年 4月 16日 (金) 20:09:17 JST
Revision: 3862 http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3862 Author: maya Date: 2010-04-16 20:09:17 +0900 (Fri, 16 Apr 2010) Log Message: ----------- SSH ポート転送のデフォルトの bind_address を 127.0.0.1 から localhost に変更した。 Modified Paths: -------------- trunk/ttssh2/ttxssh/fwdui.c -------------- next part -------------- Modified: trunk/ttssh2/ttxssh/fwdui.c =================================================================== --- trunk/ttssh2/ttxssh/fwdui.c 2010-04-15 13:15:43 UTC (rev 3861) +++ trunk/ttssh2/ttxssh/fwdui.c 2010-04-16 11:09:17 UTC (rev 3862) @@ -482,7 +482,7 @@ } strncpy_s(request->bind_address, sizeof(request->bind_address), - "127.0.0.1", _TRUNCATE); + "localhost", _TRUNCATE); i=0; switch (argc) { case 4: @@ -552,7 +552,7 @@ switch (spec->type) { case FWD_LOCAL_TO_REMOTE: - if (strcmp(spec->bind_address,"127.0.0.1") == 0) { + if (strcmp(spec->bind_address,"localhost") == 0) { _snprintf_s(str, str_remaining, _TRUNCATE, "L%s:%s:%s", spec->from_port_name, spec->to_host, spec->to_port_name); @@ -565,7 +565,7 @@ } break; case FWD_REMOTE_TO_LOCAL: - if (strcmp(spec->bind_address,"127.0.0.1") == 0) { + if (strcmp(spec->bind_address,"localhost") == 0) { _snprintf_s(str, str_remaining, _TRUNCATE, "R%s:%s:%s", spec->from_port_name, spec->to_host, spec->to_port_name); @@ -961,7 +961,7 @@ if (strcmp(spec->to_host, "localhost") != 0) { SetDlgItemText(dlg, to_host_item, spec->to_host); } - if (strcmp(spec->bind_address, "127.0.0.1") != 0) { + if (strcmp(spec->bind_address, "localhost") != 0) { SetDlgItemText(dlg, listen_address_item, spec->bind_address); } @@ -1051,7 +1051,7 @@ grab_control_text(dlg, type, IDC_SSHRTLLISTENADDR, IDC_SSHLTRLISTENADDR, new_spec.bind_address, sizeof(new_spec.bind_address)); if (new_spec.bind_address[0] == 0) { - strncpy_s(new_spec.bind_address, sizeof(new_spec.bind_address), "127.0.0.1", _TRUNCATE); + strncpy_s(new_spec.bind_address, sizeof(new_spec.bind_address), "localhost", _TRUNCATE); } else if (strcmp(new_spec.bind_address, "*") == 0 ) { strncpy_s(new_spec.bind_address, sizeof(new_spec.bind_address), "0.0.0.0", _TRUNCATE);