Skip to content

Commit

Permalink
Add ability to update root domain name
Browse files Browse the repository at this point in the history
  • Loading branch information
mjovanovic0 committed Jun 24, 2022
1 parent 8a3ec45 commit 23e7554
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion datatypes/payload.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package datatypes

import "os"
import (
"os"
)

// Payload wraps all required data to successfully execute a CF API DDNS A record update
type Payload struct {
Expand All @@ -17,6 +19,9 @@ type Payload struct {

// FQDN returns the FQDN
func (p Payload) FQDN() string {
if "@" == p.DNSRecord {
return p.Zone
}
return p.DNSRecord + "." + p.Zone
}

Expand Down

0 comments on commit 23e7554

Please sign in to comment.