mirror of
https://github.com/1f349/orchid.git
synced 2024-12-22 16:14:05 +00:00
17 lines
267 B
Go
17 lines
267 B
Go
package utils
|
|
|
|
import "github.com/1f349/violet/utils"
|
|
|
|
type DomainChecker []string
|
|
|
|
func (d DomainChecker) ValidateDomain(a string) bool {
|
|
if fqdn, ok := utils.GetTopFqdn(a); ok {
|
|
for _, i := range d {
|
|
if i == fqdn {
|
|
return true
|
|
}
|
|
}
|
|
}
|
|
return false
|
|
}
|