Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/unifi/unifi.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ type DNSPolicy struct {
ID string `json:"id,omitempty"`
Enabled bool `json:"enabled"`
Domain string `json:"domain"`
TTLSeconds int32 `json:"ttlSeconds,omitempty"`
TTLSeconds int32 `json:"ttlSeconds"` // This must not be "omitempty" as 0 maps to "auto" for Unifi.

// Address record fields (A_RECORD, AAAA_RECORD)
IPv4Address string `json:"ipv4Address,omitempty"`
Expand Down