maybe this will work?
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 39s

This commit is contained in:
Lee
2024-04-29 06:49:12 +01:00
parent 123b01d1d0
commit 387c1b1f0c
3 changed files with 7 additions and 2 deletions

View File

@ -26,7 +26,7 @@ public class PiaManager {
private static final HttpClient HTTP_CLIENT = HttpClient.newHttpClient();
private static final String PIA_OPENVPN_CONFIGS_URL = "https://www.privateinternetaccess.com/openvpn/openvpn.zip";
private static final long REMOVAL_THRESHOLD = TimeUnit.DAYS.toMicros(14); // 2 weeks
public static List<PiaServer> SERVERS = new ArrayList<>();
public static Set<PiaServer> SERVERS = new HashSet<>();
@SneakyThrows
public PiaManager() {
@ -38,7 +38,7 @@ public class PiaManager {
// Load the serversFile from the file
SERVERS = Main.GSON.fromJson(Files.readString(serversFile.toPath()), new TypeToken<List<PiaServer>>() {}.getType());
if (SERVERS == null) {
SERVERS = new ArrayList<>();
SERVERS = new HashSet<>();
}
GitUtils.cloneRepo(); // Clone the repository