Changeset 12082 for trunk


Ignore:
Timestamp:
09/13/11 13:02:51 (13 years ago)
Author:
tbretz
Message:
Set DIM_DNS_NODE to a fake address if no dns is given to be able to 'switch off' Dim support through a backdoor.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/DimSetup.cc

    r11574 r12082  
    160160void Dim::Setup(const std::string &dns, const std::string &host)
    161161{
     162    if (dns.empty())
     163    {
     164        setenv("DIM_DNS_NODE", "...", 1);
     165        //unsetenv("DIM_DNS_NODE");
     166        //unsetenv("DIM_HOST_NODE");
     167        return;
     168    }
     169
    162170    const string loc = host.empty() ? Dim::GetLocalIp() : host;
    163171
Note: See TracChangeset for help on using the changeset viewer.