[Ttssh2-commit] [3626] コマンドラインパラメータの解析に失敗して接続に失敗することがある問題を修正した。version 1 .0.0. 13 で proto ://server: port 形式を廃止した際の修正漏れ。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 9月 24日 (木) 00:58:13 JST


Revision: 3626
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3626
Author:   maya
Date:     2009-09-24 00:58:13 +0900 (Thu, 24 Sep 2009)

Log Message:
-----------
コマンドラインパラメータの解析に失敗して接続に失敗することがある問題を修正した。version 1.0.0.13 で proto://server:port 形式を廃止した際の修正漏れ。
  1. プロキシではない接続で、パラメータが telnet://server や telnet://server:port で終わっていると、TTProxy にホスト名が削除されてしまい接続に失敗する。
  2. プロキシではない接続で、パラメータに telnet://server:port/ が含まれると、realhost は消されるものの途中まで解析したプロキシが有効になったままになり、結果的に接続できず刺さった状態になる。

Modified Paths:
--------------
    trunk/TTProxy/ProxyWSockHook.h
    trunk/TTProxy/TTProxy.h
    trunk/doc/en/html/about/history.html
    trunk/doc/ja/html/about/history.html


-------------- next part --------------
Modified: trunk/TTProxy/ProxyWSockHook.h
===================================================================
--- trunk/TTProxy/ProxyWSockHook.h	2009-09-23 15:27:09 UTC (rev 3625)
+++ trunk/TTProxy/ProxyWSockHook.h	2009-09-23 15:58:13 UTC (rev 3626)
@@ -2097,9 +2097,11 @@
             if (realhost.indexOf("://") != -1 && !prefix) {
                 proxy.type = proxy.TYPE_NONE;
             }
+            if (realhost.length() == 0) {
+                realhost = NULL;
+                proxy.type = proxy.TYPE_NONE;
+            }
             instance().defaultProxy = proxy;
-            if (realhost.length() == 0)
-                realhost = NULL;
         }
         return realhost;
     }

Modified: trunk/TTProxy/TTProxy.h
===================================================================
--- trunk/TTProxy/TTProxy.h	2009-09-23 15:27:09 UTC (rev 3625)
+++ trunk/TTProxy/TTProxy.h	2009-09-23 15:58:13 UTC (rev 3626)
@@ -152,7 +152,7 @@
 		}
 		
 		if (option != NULL) {
-			if (parse_option(option)) {
+			if (parse_option(option) == 1) {
 				*option = '\0';
 			}
 		}

Modified: trunk/doc/en/html/about/history.html
===================================================================
--- trunk/doc/en/html/about/history.html	2009-09-23 15:27:09 UTC (rev 3625)
+++ trunk/doc/en/html/about/history.html	2009-09-23 15:58:13 UTC (rev 3626)
@@ -58,6 +58,7 @@
           <li>when SSH protocol was linked by the installer, it is able to edit by "File Types" of "Folder Options" on Explorer.</li>
         </ul></li>
       <li>upgraded TTSSH version supporting SSH2 to <a href="#ttssh_2.52">2.52</a></li>
+      <li>upgraded TTProxy to <a href="#ttproxy_1.0.0.16">1.0.0.16</a></li>
     </ul>
   </li>
 </ul>
@@ -2059,6 +2060,12 @@
 
 <h2><a name="ttproxy">TTProxy</a></h2>
 
+<h3><a name="ttproxy_1.0.0.16">2009.9.24 (Ver 1.0.0.16 unreleased)</a></h3>
+<ul class="history">
+      <li>Bug fix: teraterm didn't connect to server in some cases because of failed to parse a commandline parameters.<br>
+          changes of version 1.0.0.13 were incomplete.</li>
+</ul>
+
 <h3><a name="ttproxy_1.0.0.15">2008.2.29 (Ver 1.0.0.15)</a></h3>
 <ul class="history">
       <li>Bug fix: The port number over 32767 could not be available for proxy connection.</li>

Modified: trunk/doc/ja/html/about/history.html
===================================================================
--- trunk/doc/ja/html/about/history.html	2009-09-23 15:27:09 UTC (rev 3625)
+++ trunk/doc/ja/html/about/history.html	2009-09-23 15:58:13 UTC (rev 3626)
@@ -58,6 +58,7 @@
           <li>ƒCƒ“ƒXƒg[ƒ‰‚ÅSSHƒvƒƒgƒRƒ‹‚ÖŠÖ˜A•t‚¯‚½ê‡AƒGƒNƒXƒvƒ[ƒ‰‚Ì"ƒtƒHƒ‹ƒ_ƒIƒvƒVƒ‡ƒ“"‚Ì"ƒtƒ@ƒCƒ‹‚ÌŽí—Þ"‚©‚ç•ÒW‚Å‚«‚é‚悤‚É‚µ‚½B</li>
         </ul></li>
       <li><a href="#ttssh_2.52">SSH2‘ΉžTTSSH(2.52)</a>‚֍·‚µ‘Ö‚¦‚½B</li>
+      <li><a href="#ttproxy_1.0.0.16">TTProxy(1.0.0.16)</a>‚֍·‚µ‘Ö‚¦‚½B</li>
     </ul>
   </li>
 </ul>
@@ -2061,6 +2062,12 @@
 
 <h2><a name="ttproxy">TTProxy</a></h2>
 
+<h3><a name="ttproxy_1.0.0.16">2009.9.24 (Ver 1.0.0.16 unreleased)</a></h3>
+<ul class="history">
+      <li>ƒRƒ}ƒ“ƒhƒ‰ƒCƒ“ƒpƒ‰ƒ[ƒ^‚̉ðÍ‚ÉŽ¸”s‚µ‚Đڑ±‚ÉŽ¸”s‚·‚邱‚Æ‚ª‚ ‚é–â‘è‚ðC³‚µ‚½B<br>
+          1.0.0.13 ‚̏C³‚ª•sŠ®‘S‚¾‚Á‚½‚½‚߁B</li>
+</ul>
+
 <h3><a name="ttproxy_1.0.0.15">2008.2.29 (Ver 1.0.0.15)</a></h3>
 <ul class="history">
       <li>32767‚ð’´‚¦‚éƒ|[ƒg”ԍ†‚ªˆµ‚¦‚È‚¢–â‘è‚ðC³‚µ‚½B</li>



Ttssh2-commit メーリングリストの案内
Back to archive index