Adds manual blocklist option
This commit is contained in:
@@ -48,6 +48,7 @@ type configFileStruct struct {
|
||||
DomainListURLs []string `yaml:"domainListURLs"`
|
||||
} `yaml:"sources"`
|
||||
AllowLists []string `yaml:"allowList"`
|
||||
DenyList []string `yaml:"denyList"`
|
||||
}
|
||||
|
||||
var config = configStructure{
|
||||
|
@@ -52,6 +52,9 @@ func getListData() []string {
|
||||
}
|
||||
}
|
||||
|
||||
// append deny list items to list of blocked domains
|
||||
badDomains = append(badDomains, config.Config.DenyList...)
|
||||
|
||||
return badDomains
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user