chore: fix typo

This commit is contained in:
giveup 2024-09-09 18:10:03 +08:00
parent 7c8f451892
commit 6955fd7e28

View file

@ -113,7 +113,7 @@ func NewHostValueByDomain(domain string) (HostValue, error) {
domain = strings.Trim(domain, ".")
item := strings.Split(domain, ".")
if len(item) < 2 {
return HostValue{}, errors.New("invaild domain")
return HostValue{}, errors.New("invalid domain")
}
return HostValue{
IsDomain: true,