[BUGFIX] Resolver: allow srv entry with priority 0

This commit is contained in:
genofire 2020-02-09 23:30:00 +01:00
parent e54a2cc04e
commit a1ab687f6e
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,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(() -> {