mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-15 08:29:24 +00:00
Merge TXT fragments
This commit is contained in:
parent
6c23d1c8f4
commit
65ce1e2e8f
1 changed files with 4 additions and 1 deletions
|
@ -199,7 +199,10 @@ public class DnsHelper {
|
|||
} else if (record instanceof TXTRecord) {
|
||||
TXTRecord txt = (TXTRecord) record;
|
||||
for (Object content : txt.getStrings())
|
||||
result.add(new DnsRecord(content.toString(), 0));
|
||||
if (result.size() > 0)
|
||||
result.get(0).name += ' ' + content.toString();
|
||||
else
|
||||
result.add(new DnsRecord(content.toString(), 0));
|
||||
} else
|
||||
throw new IllegalArgumentException(record.getClass().getName());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue