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); }
public PACDaemon(PACSettings pACSettings, string workingDirectory, string dlcPath) { _PACSettings = pACSettings; _geositeUpdater = new GeositeUpdater(dlcPath); TouchPACFile(); TouchUserRuleFile(); WatchPacFile(workingDirectory); WatchUserRuleFile(workingDirectory); }