未验证 提交 1c07cb3d 编写于 作者: A Alex Thibodeau 提交者: GitHub

Merge pull request #1332 from Unity-Technologies/invalid-win-proxy-config-handling-1269569

Fix handling invalid Windows proxy config
......@@ -131,7 +131,11 @@ namespace System.Net
string strProxyServer = (string)Microsoft.Win32.Registry.GetValue ("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings", "ProxyServer", null);
string strProxyOverrride = (string)Microsoft.Win32.Registry.GetValue ("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings", "ProxyOverride", null);
if(strProxyServer == null) {
return null;
}
if (strProxyServer.Contains ("=")) {
foreach (string strEntry in strProxyServer.Split (new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries))
if (strEntry.StartsWith ("http=")) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册