Skip to content

Commit

Permalink
chore: automatically enable endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
kashalls committed May 24, 2024
1 parent e223079 commit fb82264
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/unifi/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ func (c *Client) ListRecords() ([]DNSRecord, error) {
// CreateEndpoint creates a new DNS record.
func (c *Client) CreateEndpoint(endpoint *endpoint.Endpoint) (*DNSRecord, error) {
record := DNSRecord{
Enabled: true,
Key: endpoint.DNSName,
RecordType: endpoint.RecordType,
TTL: endpoint.RecordTTL,
Expand Down

0 comments on commit fb82264

Please sign in to comment.