]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: make g_udpReceivers static
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Wed, 3 Aug 2022 19:34:06 +0000 (21:34 +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 0124abcda5db1b52433454a892b56a0cb86a9a45..755e8691b500103c9b25326112ea8bed3eda66a7 100644 (file)
@@ -126,7 +126,7 @@ 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};
 unique_ptr<TCPNameserver> TN;
 static vector<DNSDistributor*> g_distributors;
-vector<std::shared_ptr<UDPNameserver>> g_udpReceivers;
+static vector<std::shared_ptr<UDPNameserver>> g_udpReceivers;
 NetmaskGroup g_proxyProtocolACL;
 size_t g_proxyProtocolMaximumSize;
 
index 8305b18aa312e62960038e53b578141561baaade..709bacd74174b8c8daae3dc20beb835459c3c640 100644 (file)
@@ -43,7 +43,6 @@ extern AuthQueryCache QC;
 extern std::unique_ptr<DNSProxy> DP;
 extern CommunicatorClass Communicator;
 extern std::shared_ptr<UDPNameserver> N;
-extern vector<std::shared_ptr<UDPNameserver>> g_udpReceivers;
 extern std::unique_ptr<TCPNameserver> TN;
 extern void declareArguments();
 extern void declareStats();