mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 07:54:40 +03:00
wrap long dkim dns records at 100 characters instead of 255 for better display (no line-wrap)
This commit is contained in:
4
main.go
4
main.go
@ -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 = ""
|
||||
}
|
||||
|
Reference in New Issue
Block a user