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 a5dc232
Showing 1 changed file with 1 addition and 1 deletion.
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 a5dc232

Please sign in to comment.