]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
sdig: boost > std optional
authorRosen Penev <rosenp@gmail.com>
Fri, 13 Dec 2024 18:36:12 +0000 (10:36 -0800)
committerRosen Penev <rosenp@gmail.com>
Fri, 13 Dec 2024 19:17:04 +0000 (11:17 -0800)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
pdns/sdig.cc

index 72483aa8e182f84bef1fa9d6ce58c0fec897eef5..39e8f08d50484913313f9f233f77955366f5e481 100644 (file)
@@ -56,7 +56,7 @@ static const string nameForClass(QClass qclass, uint16_t qtype)
 static std::unordered_set<uint16_t> s_expectedIDs;
 
 static void fillPacket(vector<uint8_t>& packet, const string& q, const string& t,
-                       bool dnssec, const boost::optional<Netmask>& ednsnm,
+                       bool dnssec, const std::optional<Netmask>& ednsnm,
                        bool recurse, QClass qclass, uint8_t opcode, uint16_t qid)
 {
   DNSPacketWriter pw(packet, DNSName(q), DNSRecordContent::TypeToNumber(t), qclass, opcode);
@@ -203,7 +203,7 @@ try {
   bool fastOpen = false;
   bool insecureDoT = false;
   bool fromstdin = false;
-  boost::optional<Netmask> ednsnm;
+  std::optional<Netmask> ednsnm;
   QClass qclass = QClass::IN;
   uint8_t opcode = 0;
   string proxyheader;