• R/O
  • HTTP
  • SSH
  • HTTPS

open-tween: Commit

開発に使用するリポジトリ


Commit MetaInfo

Revisionf6d988eb3ba144e1aa903a6803c89cc6f537c561 (tree)
Time2013-06-27 23:57:04
AuthorKenji Wada <ch3cooh393@gmai...>
CommiterKenji Wada

Log Message

Windows 8.1にてUserStreamが動作しない問題を修正

Change Summary

Incremental Difference

--- a/OpenTween/Connection/HttpConnection.cs
+++ b/OpenTween/Connection/HttpConnection.cs
@@ -1,4 +1,4 @@
1-// OpenTween - Client of Twitter
1+// OpenTween - Client of Twitter
22 // Copyright (c) 2007-2011 kiri_feather (@kiri_feather) <kiri.feather@gmail.com>
33 // (c) 2008-2011 Moz (@syo68k)
44 // (c) 2008-2011 takeshik (@takeshik) <http://www.takeshik.org/>
@@ -704,6 +704,13 @@ namespace OpenTween
704704 }
705705 proxyKind = proxyType;
706706
707+ // Windows 8.1の場合SecurityProtocolを明確に指定する必要がある
708+ var osVersion = Environment.OSVersion.Version;
709+ if (osVersion.Major == 6 && osVersion.Minor == 2)
710+ {
711+ ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3;
712+ }
713+
707714 Win32Api.SetProxy(proxyType, proxyAddress, proxyPort, proxyUser, proxyPassword);
708715 }
709716 }
Show on old repository browser