diff options
Diffstat (limited to 'cli/src/cli.c')
-rw-r--r-- | cli/src/cli.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cli/src/cli.c b/cli/src/cli.c index 2ecaae415d6..58fd9104f81 100644 --- a/cli/src/cli.c +++ b/cli/src/cli.c @@ -586,6 +586,11 @@ cli_rpc_init (struct cli_state *state) int ret = -1; int port = CLI_GLUSTERD_PORT; xlator_t *this = NULL; +#ifdef IPV6_DEFAULT + char *addr_family = "inet6"; +#else + char *addr_family = "inet"; +#endif this = THIS; cli_rpc_prog = &cli_prog; @@ -621,7 +626,8 @@ cli_rpc_init (struct cli_state *state) goto out; ret = dict_set_str (options, "transport.address-family", - "inet"); + addr_family); + if (ret) goto out; } @@ -706,7 +712,7 @@ main (int argc, char *argv[]) if (ret) goto out; - cli_default_conn_timeout = 120; + cli_default_conn_timeout = 600; cli_ten_minutes_timeout = 600; ret = cli_state_init (&state); |