From a6544e62afe37e62e4353c2592f6c23f3c3e3295 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 2 Jul 2019 11:06:42 +0200 Subject: [PATCH] dnsdist: Skip non-DNSCrypt binds in `showDNSCryptBinds()` --- pdns/dnsdist-lua.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index f27fd87f71..ac9f00f46d 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -1135,6 +1135,9 @@ void setupLuaConfig(bool client) for (const auto& frontend : g_frontends) { const std::shared_ptr ctx = frontend->dnscryptCtx; + if (!ctx) { + continue; + } ret<< (fmt % idx % frontend->local.toStringWithPort() % ctx->getProviderName()) << endl; idx++; } -- 2.47.2