added fallback for non-srv dns queries
This commit is contained in:
parent
6ee11e5323
commit
fc47969741
|
@ -105,6 +105,7 @@ public class DNSHelper {
|
||||||
for(int i = 0; i < response.getAnswers().length; ++i) {
|
for(int i = 0; i < response.getAnswers().length; ++i) {
|
||||||
values.add(createNamePortBundle(host,5222,response.getAnswers()[i].getPayload()));
|
values.add(createNamePortBundle(host,5222,response.getAnswers()[i].getPayload()));
|
||||||
}
|
}
|
||||||
|
values.add(createNamePortBundle(host,5222));
|
||||||
bundle.putParcelableArrayList("values", values);
|
bundle.putParcelableArrayList("values", values);
|
||||||
return bundle;
|
return bundle;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue