PORKBUN: fix SVCB params (#3650)

This commit is contained in:
imlonghao 2025-07-08 20:12:12 +08:00 committed by GitHub
parent 874ba798d4
commit 4672409f0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -312,7 +312,9 @@ func toRc(domain string, r *domainRecord) (*models.RecordConfig, error) {
svcPriority, _ := strconv.ParseUint(c[0], 10, 16)
rc.SvcPriority = uint16(svcPriority)
rc.SvcParams = c[2]
if len(c) > 2 {
rc.SvcParams = strings.Join(c[2:], " ")
}
err = rc.SetTarget(c[1])
default:
err = rc.SetTarget(r.Content)