[BUGFIX] Resolver: allow srv entry with priority 0

This commit is contained in:
genofire 2020-02-09 23:12:03 +01:00
parent 6e9ea36d92
commit 470cc533b2
No known key found for this signature in database
GPG key ID: 9D7D3C6BFF600C6A

View file

@ -178,7 +178,7 @@ public class Resolver {
final List<Result> results = new ArrayList<>();
final List<Thread> threads = new ArrayList<>();
for (SRV record : result.getAnswersOrEmptySet()) {
if (record.name.length() == 0 && record.priority == 0) {
if (record.name.length() == 0) {
continue;
}
threads.add(new Thread(() -> {