Example #1
0
        void UpdateCustomPacCache()
        {
            var bs       = setting.GetBasicSetting();
            var fileName = bs.customPacFileName;

            customPacFileCache = string.Empty;
            if (File.Exists(fileName))
            {
                try
                {
                    var content = File.ReadAllText(fileName);
                    customPacFileCache = content ?? string.Empty;
                }
                catch { }
            }

            Libs.Sys.ProxySetter.SetPacProxy(GetPacUrl());
            setting.SendLog(I18N.SystemProxySettingUpdated);
        }