internal string GetPACContent() { if (!File.Exists(PAC_FILE)) { GeositeUpdater.MergeAndWritePACFile(config.geositeGroup, config.geositeBlacklistMode); } return(File.ReadAllText(PAC_FILE, Encoding.UTF8)); }
public string TouchPACFile() { if (!File.Exists(PAC_FILE)) { GeositeUpdater.MergeAndWritePACFile(config.geositeGroup, config.geositeBlacklistMode); } return(PAC_FILE); }
internal string GetPACContent() { if (!File.Exists(PAC_FILE)) { GeositeUpdater.MergeAndWritePACFile(config.geositeDirectGroups, config.geositeProxiedGroups, config.geositePreferDirect); } return(File.ReadAllText(PAC_FILE, Encoding.UTF8)); }
public string TouchPACFile() { if (!File.Exists(PAC_FILE)) { GeositeUpdater.MergeAndWritePACFile(config.geositeDirectGroups, config.geositeProxiedGroups, config.geositePreferDirect); } return(PAC_FILE); }
private void PacDaemon_UserRuleFileChanged(object sender, EventArgs e) { GeositeUpdater.MergeAndWritePACFile(_config.geositeGroup, _config.geositeBlacklistMode); UpdateSystemProxy(); }
private void PacDaemon_UserRuleFileChanged(object sender, EventArgs e) { GeositeUpdater.MergeAndWritePACFile(_config.geositeDirectGroups, _config.geositeProxiedGroups, _config.geositePreferDirect); UpdateSystemProxy(); }