Updates to build sucessfully - breaking changes in Firebase and SendGrid
This commit is contained in:
@@ -31,7 +31,11 @@ import org.apache.http.impl.client.CloseableHttpClient;
|
||||
import org.apache.http.util.EntityUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.xbill.DNS.*;
|
||||
import org.xbill.DNS.Lookup;
|
||||
import org.xbill.DNS.Record;
|
||||
import org.xbill.DNS.SRVRecord;
|
||||
import org.xbill.DNS.TextParseException;
|
||||
import org.xbill.DNS.Type;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.MalformedURLException;
|
||||
@@ -143,7 +147,7 @@ public class HomeserverFederationResolver {
|
||||
|
||||
try {
|
||||
List<SRVRecord> srvRecords = new ArrayList<>();
|
||||
Record[] rawRecords = new Lookup(lookupDns, Type.SRV).run();
|
||||
org.xbill.DNS.Record[] rawRecords = new Lookup(lookupDns, Type.SRV).run();
|
||||
if (Objects.isNull(rawRecords) || rawRecords.length == 0) {
|
||||
log.debug("No SRV record for {}", domain);
|
||||
return Optional.empty();
|
||||
|
||||
@@ -25,7 +25,7 @@ import com.google.gson.JsonParseException;
|
||||
import com.google.gson.JsonParser;
|
||||
import io.kamax.mxisd.http.IsAPIv1;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.http.client.config.RequestConfig;
|
||||
import org.apache.http.client.methods.CloseableHttpResponse;
|
||||
import org.apache.http.client.methods.HttpGet;
|
||||
@@ -108,13 +108,13 @@ public class IdentityServerUtils {
|
||||
log.info("Lookup name: {}", lookupDns);
|
||||
|
||||
List<SRVRecord> srvRecords = new ArrayList<>();
|
||||
Record[] records = new Lookup(lookupDns, Type.SRV).run();
|
||||
org.xbill.DNS.Record[] records = new Lookup(lookupDns, Type.SRV).run();
|
||||
if (records == null || records.length == 0) {
|
||||
log.info("No SRV record for {}", lookupDns);
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
for (Record record : records) {
|
||||
for (org.xbill.DNS.Record record : records) {
|
||||
log.info("Record: {}", record.toString());
|
||||
if (record.getType() == Type.SRV) {
|
||||
if (record instanceof SRVRecord) {
|
||||
|
||||
Reference in New Issue
Block a user