Skip to content

Commit

Permalink
Merge pull request #2 from mjovanovic0/master
Browse files Browse the repository at this point in the history
Add ability to update root domain name
  • Loading branch information
zerjioang committed Jun 26, 2022
2 parents 8a3ec45 + 23e7554 commit 4e89930
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 4e89930

Please sign in to comment.