public bool UpdateIEPac() { string pacStr = PacGenerator.GeneratePacString(pacSetting); try { File.WriteAllText(PacFilePath, pacStr); } catch { return(false); } return(true); }
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)); }