if (frontend->d_library == "h2o") {
#ifdef HAVE_LIBH2OEVLOOP
frontend = std::make_shared<H2ODOHFrontend>();
- frontend->d_library = "h2o";
#else /* HAVE_LIBH2OEVLOOP */
errlog("DOH bind %s is configured to use libh2o but the library is not available", addr);
return;
cout<<"dns-over-https(";
#ifdef HAVE_LIBH2OEVLOOP
cout<<"h2o";
-#ifdef HAVE_NGHTTP2
- cout<<" ";
-#endif
#endif /* HAVE_LIBH2OEVLOOP */
+#if defined(HAVE_LIBH2OEVLOOP) && defined(HAVE_NGHTTP2)
+ cout<<" ";
+#endif /* defined(HAVE_LIBH2OEVLOOP) && defined(HAVE_NGHTTP2) */
#ifdef HAVE_NGHTTP2
cout<<"nghttp2";
-#endif
+#endif /* HAVE_NGHTTP2 */
cout<<") ";
#endif /* HAVE_DNS_OVER_HTTPS */
#ifdef HAVE_DNSCRYPT
}
}
-void DOHUnit::handleUDPResponse(PacketBuffer&& udpResponse, InternalQueryState&& state, [[maybe_unused]] const std::shared_ptr<DownstreamState>& downstream)
+void DOHUnit::handleUDPResponse(PacketBuffer&& udpResponse, InternalQueryState&& state, [[maybe_unused]] const std::shared_ptr<DownstreamState>& downstream_)
{
auto dohUnit = std::unique_ptr<DOHUnit>(this);
dohUnit->ids = std::move(state);