aboutsummaryrefslogtreecommitdiffstats
path: root/names
diff options
context:
space:
mode:
Diffstat (limited to 'names')
-rw-r--r--names/dns-migrate.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/names/dns-migrate.js b/names/dns-migrate.js
index 30ee2b0..4753c9e 100644
--- a/names/dns-migrate.js
+++ b/names/dns-migrate.js
@@ -49,7 +49,9 @@ async function check() {
res.setServers([`${address}:${k.port || 53}`]);
for (const r of names().filter((x) => x.domain === domain)) {
n++;
- const got = await res.resolveTxt(recordName(r.name, domain)).then((t) => t.map((c) => c.join('')), () => []);
+ // Bun hands each character-string of a long TXT back as its own entry;
+ // a name has one record, so its strings, in order, are the value
+ const got = await res.resolveTxt(recordName(r.name, domain)).then((t) => [t.flat().join('')], () => []);
if (got.length !== 1 || got[0] !== r.uri) { bad++; if (bad <= 10) log(`mismatch ${r.key}: ${JSON.stringify(got).slice(0, 80)}`); }
}
}