mirror of
https://github.com/lukaszraczylo/lolcathost.git
synced 2026-07-10 04:43:11 +00:00
Create CNAME
This commit is contained in:
@@ -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 ""
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user