]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Apply suggestions from code review 9670/head
authorOtto Moerbeek <otto@drijf.net>
Mon, 7 Dec 2020 12:26:02 +0000 (13:26 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 8 Dec 2020 09:43:05 +0000 (10:43 +0100)
Co-authored-by: Remi Gacogne <rgacogne+github@valombre.net>
pdns/rec-lua-conf.cc

index b6edf6b207a45733af291bd2922e18b79e85aa0f..7532c8a487a649223fc91d3ff4ee7adf2bc786cf 100644 (file)
@@ -250,7 +250,7 @@ static void rpzPrimary(LuaConfigItems& lci, luaConfigDelayedThreads& delayedThre
       if(have.count("refresh")) {
         refresh = boost::get<uint32_t>(have["refresh"]);
         if (refresh == 0) {
-          g_log<<Logger::Warning<<"rpzMaster refresh value of 0 ignored"<<endl;
+          g_log<<Logger::Warning<<"rpzPrimary refresh value of 0 ignored"<<endl;
         }
       }
 
@@ -279,7 +279,7 @@ static void rpzPrimary(LuaConfigItems& lci, luaConfigDelayedThreads& delayedThre
       // We were passed a localAddress, check if its AF matches the masters'
       for (const auto& master : masters) {
         if (localAddress.sin4.sin_family != master.sin4.sin_family) {
-          throw PDNSException("Master address("+master.toString()+") is not of the same Address Family as the local address ("+localAddress.toString()+").");
+          throw PDNSException("Primary address("+master.toString()+") is not of the same Address Family as the local address ("+localAddress.toString()+").");
         }
       }
     }
@@ -308,11 +308,11 @@ static void rpzPrimary(LuaConfigItems& lci, luaConfigDelayedThreads& delayedThre
     }
   }
   catch(const std::exception& e) {
-    g_log<<Logger::Error<<"Problem configuring 'rpzMaster': "<<e.what()<<endl;
+    g_log<<Logger::Error<<"Problem configuring 'rpzPrimary': "<<e.what()<<endl;
     exit(1);  // FIXME proper exit code?
   }
   catch(const PDNSException& e) {
-    g_log<<Logger::Error<<"Problem configuring 'rpzMaster': "<<e.reason<<endl;
+    g_log<<Logger::Error<<"Problem configuring 'rpzPrimary': "<<e.reason<<endl;
     exit(1);  // FIXME proper exit code?
   }