]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: rename dl to g_DynListener
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Wed, 3 Aug 2022 19:52:58 +0000 (21:52 +0200)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Sat, 10 Sep 2022 10:28:16 +0000 (12:28 +0200)
pdns/auth-main.cc

index 65fb75b6c273f22b1bf395fcd6d679fef3e9b4fd..dbd756401223d069b184032e66a168a546949428 100644 (file)
@@ -120,7 +120,7 @@ AuthPacketCache PC; //!< This is the main PacketCache, shared across all threads
 AuthQueryCache QC;
 AuthZoneCache g_zoneCache;
 std::unique_ptr<DNSProxy> DP{nullptr};
-static std::unique_ptr<DynListener> dl{nullptr};
+static std::unique_ptr<DynListener> g_DynListener{nullptr};
 CommunicatorClass Communicator;
 static double avg_latency{0.0}, receive_latency{0.0}, cache_latency{0.0}, backend_latency{0.0}, send_latency{0.0};
 static unique_ptr<TCPNameserver> s_tcpNameserver{nullptr};
@@ -845,7 +845,7 @@ static void mainthread()
   }
 
   // NOW SAFE TO CREATE THREADS!
-  dl->go();
+  g_DynListener->go();
 
   if (::arg().mustDo("webserver") || ::arg().mustDo("api"))
     webserver.go();
@@ -1393,15 +1393,15 @@ int main(int argc, char** argv)
 
     if (isGuarded(argv)) {
       g_log << Logger::Warning << "This is a guarded instance of pdns" << endl;
-      dl = make_unique<DynListener>(); // listens on stdin
+      g_DynListener = std::make_unique<DynListener>(); // listens on stdin
     }
     else {
       g_log << Logger::Warning << "This is a standalone pdns" << endl;
 
       if (::arg().mustDo("control-console"))
-        dl = make_unique<DynListener>();
+        g_DynListener = std::make_unique<DynListener>();
       else
-        dl = std::make_unique<DynListener>(s_programname);
+        g_DynListener = std::make_unique<DynListener>(s_programname);
 
       writePid();
     }