]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
don't try to do protobuf w/o protobuf 3702/head
authorbert hubert <bert.hubert@netherlabs.nl>
Wed, 13 Apr 2016 13:40:52 +0000 (15:40 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Wed, 13 Apr 2016 13:40:52 +0000 (15:40 +0200)
pdns/pdns_recursor.cc

index 8072d2aaa8b67c81fdd4d1133f82b373159b6c70..8dd0975e2fffc3de8fdd2a01d3697d6ffb6fd86d 100644 (file)
@@ -765,9 +765,11 @@ void startDoResolve(void *p)
     if(!g_quiet || tracedQuery) {
       L<<Logger::Warning<<t_id<<" ["<<MT->getTid()<<"/"<<MT->numProcesses()<<"] " << (dc->d_tcp ? "TCP " : "") << "question for '"<<dc->d_mdp.d_qname<<"|"
        <<DNSRecordContent::NumberToType(dc->d_mdp.d_qtype)<<"' from "<<dc->getRemote();
+#ifdef HAVE_PROTOBUF
       if(!dc->ednssubnet.empty()) {
         L<<" (ecs "<<dc->ednssubnet.toString()<<")";
       }
+#endif
       L<<endl;
     }