Pull request: all: rm var shadowing, vol. 2
Updates #2803. Squashed commit of the following: commit bf7186378164f19ea9e21ec832526792efa2f9c3 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Thu Mar 11 19:48:17 2021 +0300 all: rm var shadowing, vol. 2
This commit is contained in:
@@ -850,7 +850,7 @@ func New(c *Config, blockFilters []Filter) *DNSFilter {
|
||||
d.BlockedServices = bsvcs
|
||||
|
||||
if blockFilters != nil {
|
||||
err := d.initFiltering(nil, blockFilters)
|
||||
err = d.initFiltering(nil, blockFilters)
|
||||
if err != nil {
|
||||
log.Error("Can't initialize filtering subsystem: %s", err)
|
||||
d.Close()
|
||||
|
||||
@@ -229,7 +229,9 @@ func (c *sbCtx) processTXT(resp *dns.Msg) (bool, [][]byte) {
|
||||
if !matched {
|
||||
var hash32 [32]byte
|
||||
copy(hash32[:], hash)
|
||||
hashHost, ok := c.hashToHost[hash32]
|
||||
|
||||
var hashHost string
|
||||
hashHost, ok = c.hashToHost[hash32]
|
||||
if ok {
|
||||
log.Debug("%s: matched %s by %s/%s", c.svc, c.host, hashHost, t)
|
||||
matched = true
|
||||
|
||||
Reference in New Issue
Block a user