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/fscctrl.cc

    r11483 r11574  
    613613    po::options_description config("Program options");
    614614    config.add_options()
    615         ("dns",       var<string>("localhost"), "Dim nameserver host name (Overwites DIM_DNS_NODE environment variable)")
     615        ("dns",       var<string>("localhost"),       "Dim nameserver (overwites DIM_DNS_NODE environment variable)")
     616        ("host",      var<string>(""),                "Address with which the Dim nameserver can connect to this host (overwites DIM_HOST_NODE environment variable)")
    616617        ("log,l",     var<string>(n), "Write log-file")
    617618        ("no-dim,d",  po_bool(),      "Disable dim services")
     
    628629        ;
    629630
    630     conf.AddEnv("dns", "DIM_DNS_NODE");
     631    conf.AddEnv("dns",  "DIM_DNS_NODE");
     632    conf.AddEnv("host", "DIM_HOST_NODE");
    631633
    632634    conf.AddOptions(config);
     
    711713    }
    712714
    713     Dim::Setup(conf.Get<string>("dns"));
     715    Dim::Setup(conf.Get<string>("dns"), conf.Get<string>("host"));
    714716
    715717    //try
Note: See TracChangeset for help on using the changeset viewer.