version 1.26, 2012/07/03 11:53:24
|
version 1.27, 2012/09/05 12:16:25
|
|
|
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; |
|
|
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 |