Skip to content

Commit

Permalink
chore: update to libdns/libdns v0.2.2 - fix build errors with caddy v…
Browse files Browse the repository at this point in the history
…2.8.0+ (#3)

* chore: update to libdns/libdns v0.2.2

* cleanup: fix build error with libdns v0.2.2
  • Loading branch information
Monviech authored Jun 6, 2024
1 parent 358b2dc commit 539d7a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module github.com/libdns/directadmin

go 1.18

require github.com/libdns/libdns v0.2.1
require github.com/libdns/libdns v0.2.2

require github.com/joho/godotenv v1.5.1
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=
github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=
github.com/libdns/libdns v0.2.1 h1:Wu59T7wSHRgtA0cfxC+n1c/e+O3upJGWytknkmFEDis=
github.com/libdns/libdns v0.2.1/go.mod h1:yQCXzk1lEZmmCPa857bnk4TsOiqYasqpyOEeSObbb40=
github.com/libdns/libdns v0.2.2 h1:O6ws7bAfRPaBsgAYt8MDe2HcNBGC29hkZ9MX2eUSX3s=
github.com/libdns/libdns v0.2.2/go.mod h1:4Bj9+5CQiNMVGf87wjX4CY3HQJypUHRuLvlsfsZqLWQ=
2 changes: 1 addition & 1 deletion models.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (r daRecord) libdnsRecord(zone string) (libdns.Record, error) {
return record, fmt.Errorf("failed to parse MX priority for %v: %v", r.Name, err)
}

record.Priority = priority
record.Priority = uint(priority)
record.Value = fmt.Sprintf("%v.%v", splits[1], zone)
case "SRV":
return record, ErrUnsupported
Expand Down

0 comments on commit 539d7a8

Please sign in to comment.