Commit 630711db authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Now that we have -S as default, also make "-T localhost:0" the default.

This picks a random port number, possibly two, one for IPv4 and one for
IPv6, and varnishadm() can find those in VSM.
parent 56234c12
......@@ -353,7 +353,7 @@ main(int argc, char * const *argv)
const char *S_arg = NULL;
const char *s_arg = "malloc,100m";
int s_arg_given = 0;
const char *T_arg = NULL;
const char *T_arg = "localhost:0";
char *p, *vcl = NULL;
struct cli cli[1];
struct vpf_fh *pfh = NULL;
......@@ -511,7 +511,10 @@ main(int argc, char * const *argv)
S_arg = optarg;
break;
case 'T':
if (*optarg != '\0')
T_arg = optarg;
else
T_arg = NULL;
break;
case 'u':
MCF_ParamSet(cli, "user", optarg);
......
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