wrap long dkim dns records at 100 characters instead of 255 for better display (no line-wrap)

This commit is contained in:
Mechiel Lukkien
2023-11-22 14:02:24 +01:00
parent 361bc2b516
commit c66fa64b8b
2 changed files with 9 additions and 11 deletions

View File

@ -2132,8 +2132,8 @@ The DNS should be configured as a TXT record at $selector._domainkey.$domain.
fmt.Print("<selector>._domainkey.<your.domain.> TXT ")
for record != "" {
s := record
if len(s) > 255 {
s, record = record[:255], record[255:]
if len(s) > 100 {
s, record = record[:100], record[100:]
} else {
record = ""
}