Feature: add default hosts localhost
This commit is contained in:
@ -30,7 +30,11 @@ func validAndSplitDomain(domain string) ([]string, bool) {
|
||||
|
||||
parts := strings.Split(domain, domainStep)
|
||||
if len(parts) == 1 {
|
||||
return nil, false
|
||||
if parts[0] == "" {
|
||||
return nil, false
|
||||
}
|
||||
|
||||
return parts, true
|
||||
}
|
||||
|
||||
for _, part := range parts[1:] {
|
||||
|
Reference in New Issue
Block a user