Don't forget to give user filter to dns forwarding server

This commit is contained in:
Eugene Bujak 2018-11-28 20:19:09 +03:00
parent 31f77af534
commit e0286ee85d
1 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,11 @@ func isRunning() bool {
func generateServerConfig() dnsforward.ServerConfig { func generateServerConfig() dnsforward.ServerConfig {
filters := []dnsforward.Filter{} filters := []dnsforward.Filter{}
userFilter := userFilter()
filters = append(filters, dnsforward.Filter{
ID: userFilter.ID,
Rules: userFilter.Rules,
})
for _, filter := range config.Filters { for _, filter := range config.Filters {
filters = append(filters, dnsforward.Filter{ filters = append(filters, dnsforward.Filter{
ID: filter.ID, ID: filter.ID,