Skip to content

Commit

Permalink
add dot for default domain
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek9686 committed Dec 15, 2024
1 parent 3ac7c27 commit 318efe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func createDNS(w http.ResponseWriter, r *http.Request) {
}
// check if default domain is appended if not append
if !strings.HasSuffix(entry.Name, servercfg.GetDefaultDomain()) {
entry.Name += servercfg.GetDefaultDomain()
entry.Name += "." + servercfg.GetDefaultDomain()
}
entry, err = logic.CreateDNS(entry)
if err != nil {
Expand Down

0 comments on commit 318efe6

Please sign in to comment.