mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-09-07 21:54:59 +08:00
PORKBUN: fix SVCB params (#3650)
This commit is contained in:
parent
874ba798d4
commit
4672409f0b
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue