Skip to content

Commit

Permalink
Merge pull request #124 from akamai/release/v1.1.0
Browse files Browse the repository at this point in the history
Release/v1.1.0
  • Loading branch information
piotrpio authored Feb 23, 2021
2 parents da2407d + e3c14ea commit 714bc0a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ matrix:
include:
- go: 1.12.x
- go: 1.13.x
- go: 1.x
- go: 1.14.x
- go: 1.15.x
- go: tip
allow_failures:
- go: tip
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# EDGEGRID GOLANG RELEASE NOTES

## 1.1.0 (Feb 23, 2021)

#### FEATURES/ENHANCEMENTS:
* DNSv2
* Add support to parse HTTPS, SVCB records

## 1.0.1 (Jan 7, 2021)
* CPSv2 - Fixed several issues with listing enrollments

Expand Down
18 changes: 18 additions & 0 deletions configdns-v2/record_lookup.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,24 @@ func ParseRData(rtype string, rdata []string) map[string]interface{} {
break
}

case "SVCB":
for _, rcontent := range rdata {
parts := strings.Split(rcontent, " ")
fieldMap["svc_priority"], _ = strconv.Atoi(parts[0])
fieldMap["target_name"] = parts[1]
fieldMap["svc_params"] = parts[2]
break
}

case "HTTPS":
for _, rcontent := range rdata {
parts := strings.Split(rcontent, " ")
fieldMap["svc_priority"], _ = strconv.Atoi(parts[0])
fieldMap["target_name"] = parts[1]
fieldMap["svc_params"] = parts[2]
break
}

default:
for _, rcontent := range rdata {
newrdata = append(newrdata, rcontent)
Expand Down

0 comments on commit 714bc0a

Please sign in to comment.