Create CNAME

This commit is contained in:
2025-11-28 12:31:45 +00:00
parent 22552aec99
commit 9c1c1eb9c6
17 changed files with 939 additions and 156 deletions
+6
View File
@@ -7,6 +7,7 @@ import (
"github.com/charmbracelet/bubbles/textinput"
tea "github.com/charmbracelet/bubbletea"
"github.com/lukaszraczylo/lolcathost/internal/config"
)
// FormMode represents the form mode.
@@ -243,6 +244,11 @@ func (f *Form) Validate() string {
return "Group is required"
}
// Check if domain is blocked
if config.IsBlockedDomain(domain) {
return fmt.Sprintf("Domain '%s' is blocked (Apple system domain)", domain)
}
return ""
}