From 62d5f2acafaac95ee8293bb0ec84ede343cf995f Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Sun, 28 Apr 2024 20:49:11 -0400 Subject: [PATCH] Use CF for DNS --- src/main/java/me/braydon/pia/PIAServerList.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/braydon/pia/PIAServerList.java b/src/main/java/me/braydon/pia/PIAServerList.java index 7df82d74e..c556ff6b9 100644 --- a/src/main/java/me/braydon/pia/PIAServerList.java +++ b/src/main/java/me/braydon/pia/PIAServerList.java @@ -8,10 +8,8 @@ import lombok.NonNull; import lombok.SneakyThrows; import me.braydon.pia.readme.ReadMeManager; import net.lingala.zip4j.ZipFile; -import org.xbill.DNS.ARecord; -import org.xbill.DNS.Lookup; +import org.xbill.DNS.*; import org.xbill.DNS.Record; -import org.xbill.DNS.Type; import java.io.*; import java.net.URL; @@ -34,6 +32,7 @@ public final class PIAServerList { @SneakyThrows public static void main(@NonNull String[] args) { + Lookup.setDefaultResolver(new SimpleResolver("1.1.1.1")); // Use CF DNS Set servers = getNewServers(); // Get the new servers from PIA int before = servers.size(); servers.addAll(loadServersFromFile()); // Load servers from the file