diff --git a/provider_hostFile.go b/provider_hostFile.go index 2bcbe46..0403037 100644 --- a/provider_hostFile.go +++ b/provider_hostFile.go @@ -27,7 +27,7 @@ func (p providerHostFile) GetDomainList(d providerDefinition) ([]entry, error) { var ( entries []entry - matcher = regexp.MustCompile(`^(?:[0-9.]+|[a-z0-9:]+)\s+([^\s]+)(?:\s+#(.+))?$`) + matcher = regexp.MustCompile(`^(?:[0-9.]+|[a-z0-9:]+)\s+([^\s]+)(?:\s+#(.+)|\s+#)?$`) ) scanner := bufio.NewScanner(r)