Parcourir la source

[2726] Update comment

Mukund Sivaraman il y a 12 ans
Parent
commit
d6b2905297
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/lib/server_common/portconfig.cc

+ 2 - 1
src/lib/server_common/portconfig.cc

@@ -49,7 +49,8 @@ parseAddresses(isc::data::ConstElementPtr addresses,
                         "address and port");
                         "address and port");
                 }
                 }
                 try {
                 try {
-                    // Just check, don't use the address for anything yet
+                    // We create an IOAddress object to just check that
+                    // construction passes. It is immediately destroyed.
                     // cppcheck-suppress unusedScopedObject
                     // cppcheck-suppress unusedScopedObject
                     IOAddress(addr->stringValue());
                     IOAddress(addr->stringValue());
                     if (port->intValue() < 0 ||
                     if (port->intValue() < 0 ||