Commit 77a8d41d authored by Pavan Balaji's avatar Pavan Balaji
Browse files

[svn-r10690] Provide an environment variable to disable hostname propagation.

Fixes tt#1749.

No reviewer.
parent 46d23b76
...@@ -1540,6 +1540,11 @@ static HYD_status set_default_values(void) ...@@ -1540,6 +1540,11 @@ static HYD_status set_default_values(void)
if (HYD_uii_mpx_exec_list == NULL && HYD_server_info.user_global.ckpoint_prefix == NULL) if (HYD_uii_mpx_exec_list == NULL && HYD_server_info.user_global.ckpoint_prefix == NULL)
HYDU_ERR_SETANDJUMP(status, HYD_INTERNAL_ERROR, "no executable provided\n"); HYDU_ERR_SETANDJUMP(status, HYD_INTERNAL_ERROR, "no executable provided\n");
/* If hostname propagation is not set on the command-line, check
* for the environment variable */
if (hostname_propagation == -1)
MPL_env2bool("HYDRA_HOSTNAME_PROPAGATION", &hostname_propagation);
/* If an interface is provided, set that */ /* If an interface is provided, set that */
if (HYD_server_info.user_global.iface) { if (HYD_server_info.user_global.iface) {
if (hostname_propagation == 1) { if (hostname_propagation == 1) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment