- clients: fix race introduced by commit 07db927; update tech doc

This commit is contained in:
Simon Zolin
2019-06-07 11:37:55 +03:00
parent 07db927246
commit 1fcb69d3a9
3 changed files with 6 additions and 6 deletions

2
dns.go
View File

@@ -216,7 +216,7 @@ func generateServerConfig() dnsforward.ServerConfig {
// If a client has his own settings, apply them
func applyClientSettings(clientAddr string, setts *dnsfilter.RequestFilteringSettings) {
c, ok := clientFind(clientAddr)
if !ok || c == nil || !c.UseOwnSettings {
if !ok || !c.UseOwnSettings {
return
}