Set priority 10 to MX records

This commit is contained in:
Balakrishnan Balasubramanian 2024-04-22 23:13:42 -04:00
parent 581d6613cc
commit 70ff03f233
2 changed files with 5 additions and 4 deletions

2
go.mod
View File

@ -1,6 +1,6 @@
module go.balki.me/cloudflare-dns-cli
go 1.22.1
go 1.22.2
require (
github.com/libdns/cloudflare v0.1.1

View File

@ -33,9 +33,10 @@ func genRecord() (libdns.Record, error) {
case cname != "":
if mx {
return libdns.Record{
Type: "MX",
Name: sub,
Value: cname,
Type: "MX",
Name: sub,
Value: cname,
Priority: 10,
}, nil
} else {
return libdns.Record{