Пример #1
0
        public Configuration()
        {
            index     = 0;
            localPort = 1080;

            reconnectTimes = 2;
            keepVisitTime  = 180;
            connectTimeout = 5;
            dnsServer      = "";
            localDnsServer = "";

            balanceAlgorithm       = "LowException";
            random                 = true;
            sysProxyMode           = (int)ProxyMode.Pac;
            proxyRuleMode          = (int)ProxyRuleMode.BypassLanAndChina;
            IsServerLogFormTopmost = false;
            ServerLogFormLocation  = new APoint();

            nodeFeedAutoUpdate            = true;
            nodeFeedAutoLatency           = false;
            nodeFeedAutoUpdateUseProxy    = false;
            nodeFeedAutoUpdateTryUseProxy = false;

            serverSubscribes = new List <ServerSubscribe>()
            {
            };

            configs = new List <Server>()
            {
                GetDefaultServer()
            };

            hotkey = new HotkeyConfig();
        }
        public Configuration()
        {
            index     = 0;
            localPort = 1080;

            reconnectTimes = 2;
            keepVisitTime  = 180;
            connectTimeout = 5;
            dnsServer      = "";
            localDnsServer = "";

            balanceAlgorithm       = "LowException";
            enableBalance          = false;
            autoBan                = false;
            enableLogging          = true;
            sysProxyMode           = (int)ProxyMode.NoModify;
            proxyRuleMode          = (int)ProxyRuleMode.Disable;
            IsServerLogFormTopmost = false;
            ServerLogFormLocation  = new APoint();

            serverSubscribes                = new List <ServerSubscribe>();
            nodeFeedAutoUpdate              = true;
            nodeFeedAutoUpdateInterval      = 3;
            nodeFeedAutoLatency             = false;
            nodeFeedAutoLatencyInterval     = 30;
            nodeFeedAutoUpdateUseProxy      = false;
            nodeFeedAutoUpdateTryUseProxy   = false;
            sortServersBySubscriptionsOrder = true;
            LastnodeFeedAutoLatency         = 0;
            LastUpdateSubscribesTime        = 0;

            Servers = new List <Server>()
            {
                GetDefaultServer()
            };

            hotkey = new HotkeyConfig();
        }