Skip to content

Commit

Permalink
flarectl/dns: dereference priority pointer
Browse files Browse the repository at this point in the history
Closes #1282
  • Loading branch information
jacobbednarz committed May 23, 2023
1 parent 46538f0 commit b9c7a0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/1289.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
flarectl/dns: ensure MX priority value is dereferenced
```
2 changes: 1 addition & 1 deletion cmd/flarectl/zone.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func zoneRecords(c *cli.Context) error {
for _, r := range records {
switch r.Type {
case "MX":
r.Content = fmt.Sprintf("%d %s", r.Priority, r.Content)
r.Content = fmt.Sprintf("%d %s", *r.Priority, r.Content)
case "SRV":
dp := r.Data.(map[string]interface{})
r.Content = fmt.Sprintf("%.f %s", dp["priority"], r.Content)
Expand Down

0 comments on commit b9c7a0e

Please sign in to comment.