Add eDNS option + fix blob range bug
This commit is contained in:
@@ -12,17 +12,17 @@ use std::{
|
||||
};
|
||||
|
||||
use mail_auth::{
|
||||
MessageAuthenticator,
|
||||
hickory_resolver::{
|
||||
AsyncResolver, TokioAsyncResolver,
|
||||
config::{NameServerConfig, Protocol, ResolverConfig, ResolverOpts},
|
||||
system_conf::read_system_conf,
|
||||
AsyncResolver, TokioAsyncResolver,
|
||||
},
|
||||
MessageAuthenticator,
|
||||
};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use utils::{
|
||||
cache::CacheItemWeight,
|
||||
config::{utils::ParseValue, Config},
|
||||
config::{Config, utils::ParseValue},
|
||||
};
|
||||
|
||||
use crate::Server;
|
||||
@@ -215,6 +215,10 @@ impl Resolvers {
|
||||
if let Some(attempts) = config.property("resolver.attempts") {
|
||||
opts.attempts = attempts;
|
||||
}
|
||||
opts.edns0 = config
|
||||
.property_or_default("resolver.edns", "true")
|
||||
.unwrap_or(true);
|
||||
|
||||
// We already have a cache, so disable the built-in cache
|
||||
opts.cache_size = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user