(file) Return to Server.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / ControlProviders / InteropProvider

Diff for /pegasus/src/Pegasus/ControlProviders/InteropProvider/Server.cpp between version 1.26 and 1.27

version 1.26, 2012/07/03 11:53:24 version 1.27, 2012/09/05 12:16:25
Line 326 
Line 326 
         configManager->getCurrentValue("enableHttpConnection"));         configManager->getCurrentValue("enableHttpConnection"));
     Boolean enableHttpsConnection = ConfigManager::parseBooleanValue(     Boolean enableHttpsConnection = ConfigManager::parseBooleanValue(
         configManager->getCurrentValue("enableHttpsConnection"));         configManager->getCurrentValue("enableHttpsConnection"));
       String listenAdd = configManager->getCurrentValue(
           "listenAddress");
  
     Array<CIMInstance> instances;     Array<CIMInstance> instances;
     Uint32 namespaceAccessProtocol;     Uint32 namespaceAccessProtocol;
Line 336 
Line 338 
         PEGASUS_CLASSNAME_PG_CIMXMLCOMMUNICATIONMECHANISM, false, true, false);         PEGASUS_CLASSNAME_PG_CIMXMLCOMMUNICATIONMECHANISM, false, true, false);
  
     Array<String> ips;     Array<String> ips;
   
       if(!String::equalNoCase(listenAdd, "All"))
       {
           ips = DefaultPropertyOwner::parseAndGetListenAddress(listenAdd);
           //Filter out the loopback addresses without going deeper to TCP Layer
           for(Uint32 i = 0, n = ips.size(); i < n; ++i)
           {
               String add = ips[i];
               if((add.size() >= 3) &&
                   ((add[0] == Char16(':') && add[1] == Char16(':') &&
                       add[2] == Char16('1')) ||
                   ( add[0] == Char16('1') && add[1] == Char16('2') &&
                       add[2] == Char16('7'))))
               {
                   ips.remove(i);
               }
           }
   
       }
       else
       {
 #ifdef PEGASUS_ENABLE_IPV6 #ifdef PEGASUS_ENABLE_IPV6
     ips = System::getInterfaceAddrs();     ips = System::getInterfaceAddrs();
 #endif #endif
       }
     if (enableHttpConnection)     if (enableHttpConnection)
     {     {
         // Build the CommunicationMechanism instance for the HTTP protocol         // Build the CommunicationMechanism instance for the HTTP protocol


Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2