Use CF for DNS
All checks were successful
Sync PIA Servers / docker (17, 3.8.5) (push) Successful in 21s
All checks were successful
Sync PIA Servers / docker (17, 3.8.5) (push) Successful in 21s
This commit is contained in:
parent
9f3f2f4e76
commit
62d5f2acaf
@ -8,10 +8,8 @@ import lombok.NonNull;
|
|||||||
import lombok.SneakyThrows;
|
import lombok.SneakyThrows;
|
||||||
import me.braydon.pia.readme.ReadMeManager;
|
import me.braydon.pia.readme.ReadMeManager;
|
||||||
import net.lingala.zip4j.ZipFile;
|
import net.lingala.zip4j.ZipFile;
|
||||||
import org.xbill.DNS.ARecord;
|
import org.xbill.DNS.*;
|
||||||
import org.xbill.DNS.Lookup;
|
|
||||||
import org.xbill.DNS.Record;
|
import org.xbill.DNS.Record;
|
||||||
import org.xbill.DNS.Type;
|
|
||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
@ -34,6 +32,7 @@ public final class PIAServerList {
|
|||||||
|
|
||||||
@SneakyThrows
|
@SneakyThrows
|
||||||
public static void main(@NonNull String[] args) {
|
public static void main(@NonNull String[] args) {
|
||||||
|
Lookup.setDefaultResolver(new SimpleResolver("1.1.1.1")); // Use CF DNS
|
||||||
Set<PIAServer> servers = getNewServers(); // Get the new servers from PIA
|
Set<PIAServer> servers = getNewServers(); // Get the new servers from PIA
|
||||||
int before = servers.size();
|
int before = servers.size();
|
||||||
servers.addAll(loadServersFromFile()); // Load servers from the file
|
servers.addAll(loadServersFromFile()); // Load servers from the file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user