Skip to content

Commit

Permalink
client: Fix delete engine when client change name
Browse files Browse the repository at this point in the history
  • Loading branch information
hoang-rio committed Jul 5, 2024
1 parent 664c173 commit 9cfa976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/home/clientshttp.go
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ func (clients *clientsContainer) updateClientDNSFtl(prev, c client.Persistent, h
Context.filters.ClientsFilteringEngine[c.Name] = Context.filters.ClientsFilteringEngine[prev.Name]
Context.filters.ClientsRulesStorageAllow[c.Name] = Context.filters.ClientsRulesStorageAllow[prev.Name]
Context.filters.ClientsFilteringEngineAllow[c.Name] = Context.filters.ClientsFilteringEngineAllow[prev.Name]
Context.filters.DeleteClientFtlEngine(c.Name)
Context.filters.DeleteClientFtlEngine(prev.Name)
} else if hasFilterChange || hasWhiteListFilterChange || hasUserRulesChange {
Context.filters.InitForClient(c.Name, c.WhitelistFilters, c.Filters, c.UserRules)
}
Expand Down

0 comments on commit 9cfa976

Please sign in to comment.