reduces character count
This commit is contained in:
parent
a055940bf6
commit
b7c2beb01c
@ -41,6 +41,7 @@ func (c NsUpdateStruct) UpdateTXT(record, recordType, value string) error {
|
||||
r, err := net.LookupTXT(record)
|
||||
if err != nil {
|
||||
config.Cfg.Log.Info("unable to get existing record", "record", record, "error", err)
|
||||
return err
|
||||
}
|
||||
|
||||
var oldTXT string
|
||||
@ -135,7 +136,7 @@ func sanitizeTXT(s string) string {
|
||||
s = ""
|
||||
for i, r := range a {
|
||||
s += string(r)
|
||||
if i > 0 && (i+1)%254 == 0 {
|
||||
if i > 0 && (i+1)%200 == 0 {
|
||||
s += string(`" "`)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user