]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: make dl (DynListener) static
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Wed, 3 Aug 2022 19:32:07 +0000 (21:32 +0200)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Sat, 10 Sep 2022 09:49:36 +0000 (11:49 +0200)
pdns/auth-main.cc
pdns/auth-main.hh

index 04e64f937f20fe91d92fd2add488550db608e17f..0124abcda5db1b52433454a892b56a0cb86a9a45 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};
-std::unique_ptr<DynListener> dl{nullptr};
+static std::unique_ptr<DynListener> dl{nullptr};
 CommunicatorClass Communicator;
 shared_ptr<UDPNameserver> N;
 static double avg_latency{0.0}, receive_latency{0.0}, cache_latency{0.0}, backend_latency{0.0}, send_latency{0.0};
index c31c6a191f29f91a6773d473aafda6e8e5a40e61..8305b18aa312e62960038e53b578141561baaade 100644 (file)
@@ -41,7 +41,6 @@ extern StatBag S; //!< Statistics are gathered across PDNS via the StatBag class
 extern AuthPacketCache PC; //!< This is the main PacketCache, shared across all threads
 extern AuthQueryCache QC;
 extern std::unique_ptr<DNSProxy> DP;
-extern std::unique_ptr<DynListener> dl;
 extern CommunicatorClass Communicator;
 extern std::shared_ptr<UDPNameserver> N;
 extern vector<std::shared_ptr<UDPNameserver>> g_udpReceivers;