Set priority 10 to MX records
This commit is contained in:
parent
581d6613cc
commit
70ff03f233
2
go.mod
2
go.mod
@ -1,6 +1,6 @@
|
|||||||
module go.balki.me/cloudflare-dns-cli
|
module go.balki.me/cloudflare-dns-cli
|
||||||
|
|
||||||
go 1.22.1
|
go 1.22.2
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/libdns/cloudflare v0.1.1
|
github.com/libdns/cloudflare v0.1.1
|
||||||
|
7
main.go
7
main.go
@ -33,9 +33,10 @@ func genRecord() (libdns.Record, error) {
|
|||||||
case cname != "":
|
case cname != "":
|
||||||
if mx {
|
if mx {
|
||||||
return libdns.Record{
|
return libdns.Record{
|
||||||
Type: "MX",
|
Type: "MX",
|
||||||
Name: sub,
|
Name: sub,
|
||||||
Value: cname,
|
Value: cname,
|
||||||
|
Priority: 10,
|
||||||
}, nil
|
}, nil
|
||||||
} else {
|
} else {
|
||||||
return libdns.Record{
|
return libdns.Record{
|
||||||
|
Loading…
Reference in New Issue
Block a user