Fix typo and update message

This commit is contained in:
Frank Denis 2021-01-03 16:00:02 +01:00
parent 5861a58089
commit 197f13ea0f
4 changed files with 89 additions and 87 deletions

View file

@ -612,7 +612,7 @@ func ConfigLoad(proxy *Proxy, flags *ConfigFlags) error {
} }
proxy.routes = &routes proxy.routes = &routes
} }
proxy.skipAnonIncompatbibleResolvers = config.AnonymizedDNS.SkipIncompatible proxy.skipAnonIncompatibleResolvers = config.AnonymizedDNS.SkipIncompatible
proxy.anonDirectCertFallback = config.AnonymizedDNS.DirectCertFallback proxy.anonDirectCertFallback = config.AnonymizedDNS.DirectCertFallback
if config.DoHClientX509AuthLegacy.Creds != nil { if config.DoHClientX509AuthLegacy.Creds != nil {

View file

@ -766,6 +766,8 @@ fragments_blocked = ['cisco', 'cisco-ipv6', 'cisco-familyshield', 'cisco-familys
# { server_name='example-server-2', via=['sdns://gRIxMzcuNzQuMjIzLjIzNDo0NDM'] } # { server_name='example-server-2', via=['sdns://gRIxMzcuNzQuMjIzLjIzNDo0NDM'] }
# ] # ]
routes = { server_name='*', via = ['*'] }
# Skip resolvers incompatible with anonymization instead of using them directly # Skip resolvers incompatible with anonymization instead of using them directly

View file

@ -89,7 +89,7 @@ type Proxy struct {
pluginBlockUnqualified bool pluginBlockUnqualified bool
showCerts bool showCerts bool
certIgnoreTimestamp bool certIgnoreTimestamp bool
skipAnonIncompatbibleResolvers bool skipAnonIncompatibleResolvers bool
anonDirectCertFallback bool anonDirectCertFallback bool
pluginBlockUndelegated bool pluginBlockUndelegated bool
child bool child bool

View file

@ -426,11 +426,11 @@ func fetchDNSCryptServerInfo(proxy *Proxy, name string, stamp stamps.ServerStamp
} }
if knownBugs.fragmentsBlocked && relay != nil && relay.Dnscrypt != nil { if knownBugs.fragmentsBlocked && relay != nil && relay.Dnscrypt != nil {
relay = nil relay = nil
if proxy.skipAnonIncompatbibleResolvers { if proxy.skipAnonIncompatibleResolvers {
dlog.Infof("[%v] is incompatible with anonymization, it will be ignored", name) dlog.Infof("[%v] couldn't be reached anonymously, it will be ignored", name)
return ServerInfo{}, errors.New("Resolver is incompatible with anonymization") return ServerInfo{}, errors.New("Resolver couldn't be reached anonymously")
} }
dlog.Warnf("[%v] is incompatible with anonymization", name) dlog.Warnf("[%v] couldn't be reached anonymously - check the relay and that your router doesn't drop UDP fragments", name)
} }
if err != nil { if err != nil {
return ServerInfo{}, err return ServerInfo{}, err