Use new Activity Result APIs

This commit is contained in:
NekoInverter committed 2020-12-22 17:12:42 +08:00
1 parent c4b9d82768
commit 304af7dbe8
29 files changed
+224 -281

No files matched your search

@@ -82,7 +82,7 @@ public class EhDns implements Dns {
private static void put(Map<String, List<InetAddress>> map, String host, String ips) {
String[] ipList = ips.split("\\+");
InetAddress[] addresses = new InetAddress[ipList.length];
for (int i = 0;i < ipList.length;i++) {
for (int i = 0; i < ipList.length; i++) {
addresses[i] = Hosts.toInetAddress(host, ipList[i]);
}
map.put(host, Arrays.asList(addresses));