Skip to content

Commit

Permalink
Capitalize TTL
Browse files Browse the repository at this point in the history
  • Loading branch information
bookmoons committed Jun 28, 2019
1 parent e91bc65 commit 6762c5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rr.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type RR struct {
Name string
Type string
Value string
Ttl *time.Duration
TTL *time.Duration
Expiry *time.Time
}

Expand All @@ -34,10 +34,10 @@ const NameCollision = "127.0.53.53"

// String returns a string representation of an RR in zone-file format.
func (rr *RR) String() string {
if rr.Ttl == nil {
if rr.TTL == nil {
return rr.Name + "\t 3600\tIN\t" + rr.Type + "\t" + rr.Value
} else {
ttl := ttlString(rr.Ttl)
ttl := ttlString(rr.TTL)
return rr.Name + "\t" + ttl + "\t" + rr.Type + "\t" + rr.Value
}
}
Expand Down

0 comments on commit 6762c5b

Please sign in to comment.