Example #1
0
        public bool UpdateIEPac()
        {
            string pacStr = PacGenerator.GeneratePacString(pacSetting);

            try
            {
                File.WriteAllText(PacFilePath, pacStr);
            }
            catch
            {
                return(false);
            }
            return(true);
        }
Example #2
0
        static void v6()
        {
            List <string> throughMe = new List <string>();

            throughMe.Add("baidu.com");
            throughMe.Add("ba.com");
            throughMe.Add("baidu.com:8080");
            PacSetting ps = new PacSetting
            {
                MyAddress         = "127.0.0.1:8555",
                OtherProxyAddress = null
            };

//			ps.AddURLPatternRange(throughMe);
            Console.WriteLine(PacGenerator.GeneratePacString(ps));
        }