Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions proxygen/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ set(
# append proxygen::coro sources
set(
PROXYGEN_CORO_SOURCES
dns/CAresResolver.cpp
dns/CachingDNSResolver.cpp
dns/DNSModule.cpp
dns/DNSResolver.cpp
dns/Rfc6724.cpp
Expand Down Expand Up @@ -307,6 +309,7 @@ target_link_libraries(
Boost::iostreams
ZLIB::ZLIB
${HTTP3_DEPEND_LIBS}
cares
)

# Install the headers, excluding unit testing related headers
Expand Down
7 changes: 1 addition & 6 deletions proxygen/lib/dns/CAresResolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ using std::unique_ptr;
using std::vector;

/* Make sure C-Ares error codes that map to DNS RCODE values are unchanged */
#if !(ARES_SUCCESS == 0 && ARES_EREFUSED == 6)
#error "C-Ares status does not map to DNS RCODE values"
#endif
static_assert(ARES_SUCCESS == 0 && ARES_EREFUSED == 6, "C-Ares status does not map to DNS RCODE values");

/* Convert a C-Ares status value to an DNS RCODE; -1 for unknown */
#define ARES_TO_RCODE(x) (((x) <= ARES_EREFUSED) ? (x) : -1)
Expand Down Expand Up @@ -161,9 +159,6 @@ void CAresResolver::Query::succeed(std::vector<Answer> answers) {

TraceFieldType lookupType;
switch (answer.type) {
case Answer::AnswerType::AT_TXT:
lookupType = TraceFieldType::TXT;
break;
case Answer::AnswerType::AT_ADDRESS:
lookupType = TraceFieldType::IpAddr;
break;
Expand Down
Loading