⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 commhelper.cs

📁 破解的飞信源代码
💻 CS
字号:
namespace Imps.Client.CommLayer
{
    using Imps.Utils;
    using System;
    using System.Net;

    internal static class CommHelper
    {
        public static string GetProxyHost(IWebProxy webProxy)
        {
            if (webProxy != null)
            {
                string proxyServer;
                int? proxyPort;
                if (webProxy is WebProxy)
                {
                    return (webProxy as WebProxy).Address.Host;
                }
                if (IeConfig.ReadIeHttpProxySetting(out proxyServer, out proxyPort))
                {
                    return proxyServer;
                }
            }
            return string.Empty;
        }

        public static int GetProxyPort(IWebProxy webProxy)
        {
            if (webProxy != null)
            {
                string proxyServer;
                int? proxyPort;
                if (webProxy is WebProxy)
                {
                    return (webProxy as WebProxy).Address.Port;
                }
                if (IeConfig.ReadIeHttpProxySetting(out proxyServer, out proxyPort))
                {
                    return proxyPort.get_Value();
                }
            }
            return 80;
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -