Clarify that skipAnonIncompatbibleResolvers does what it says

This commit is contained in:
Frank Denis 2020-07-02 13:45:19 +02:00
parent ece0c76172
commit 5e2f1c4146
1 changed files with 2 additions and 1 deletions

View File

@ -337,11 +337,12 @@ func fetchDNSCryptServerInfo(proxy *Proxy, name string, stamp stamps.ServerStamp
knownBugs.fragmentsBlocked = true
}
if knownBugs.fragmentsBlocked && (relayUDPAddr != nil || relayTCPAddr != nil) {
dlog.Warnf("[%v] is incompatible with anonymization", name)
relayTCPAddr, relayUDPAddr = nil, nil
if proxy.skipAnonIncompatbibleResolvers {
dlog.Infof("[%v] is incompatible with anonymization, it will be ignored", name)
return ServerInfo{}, errors.New("Resolver is incompatible with anonymization")
}
dlog.Warnf("[%v] is incompatible with anonymization", name)
}
if err != nil {
return ServerInfo{}, err