Ignore:
Timestamp:
07/24/11 20:43:08 (13 years ago)
Author:
tbretz
Message:
Added the possibility to setup DIM_HOST_NODE with the --host program option.
File:
1 edited

Legend:

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

    r11516 r11574  
    515515    po::options_description config("Program options");
    516516    config.add_options()
    517         ("dns",       var<string>("localhost"), "Dim nameserver host name (Overwites DIM_DNS_NODE environment variable)")
     517        ("dns",       var<string>("localhost"),       "Dim nameserver (overwites DIM_DNS_NODE environment variable)")
     518        ("host",      var<string>(""),                "Address with which the Dim nameserver can connect to this host (overwites DIM_HOST_NODE environment variable)")
    518519        ("log,l",     var<string>(n), "Write log-file")
    519520//        ("no-dim,d",  po_bool(),      "Disable dim services")
     
    530531        ;
    531532*/
    532     conf.AddEnv("dns", "DIM_DNS_NODE");
     533    conf.AddEnv("dns",  "DIM_DNS_NODE");
     534    conf.AddEnv("host", "DIM_HOST_NODE");
    533535
    534536    conf.AddOptions(config);
     
    613615    }
    614616
    615     Dim::Setup(conf.Get<string>("dns"));
     617    Dim::Setup(conf.Get<string>("dns"), conf.Get<string>("host"));
    616618
    617619    //try
Note: See TracChangeset for help on using the changeset viewer.