1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Fix TXT docs, remove AUTOSPLIT (#1083)

This commit is contained in:
Tom Limoncelli
2021-03-07 14:34:00 -05:00
committed by GitHub
parent 8dea9edc34
commit 50a24605e6
3 changed files with 186 additions and 157 deletions

View File

@ -842,7 +842,6 @@ function SPF_BUILDER(value) {
// Only add the raw spf record if it isn't an empty string
if (value.raw !== '') {
rp = {};
rp.txtSplitAlgorithm = 'multistring'; // Split the target if needed.
if (value.ttl) {
r.push(TXT(value.raw, rawspf, rp, TTL(value.ttl)));
} else {
@ -864,8 +863,6 @@ function SPF_BUILDER(value) {
p.txtMaxSize = value.txtMaxSize;
}
p.txtSplitAlgorithm = 'multistring'; // Split the target if needed.
// Generate a TXT record with the metaparameters.
if (value.ttl) {
r.push(TXT(value.label, rawspf, p, TTL(value.ttl)));