Display actual error message from TokioAsyncResolver, if any

This commit is contained in:
Andrej Kacian 2022-02-07 12:55:21 +01:00
parent 0cec421930
commit bfbefb0cd2

View file

@ -149,7 +149,11 @@ impl Globals {
globals,
config,
keypair: Arc::new(keypair),
dns_resolver: TokioAsyncResolver::tokio_from_system_conf().map_err(|_| {
dns_resolver: TokioAsyncResolver::tokio_from_system_conf().map_err(|e| {
error!(
"Failed to set up trust dns resolver with system config: {}",
e
);
Error::bad_config("Failed to set up trust dns resolver with system config.")
})?,
actual_destination_cache: Arc::new(RwLock::new(WellKnownMap::new())),