acceptor: Give open functions only the options part of av

av[0] is already passed as la->name, av[1] as la->endpoint
parent 86231ff8
......@@ -147,7 +147,7 @@ VCA_Arg(const char *spec)
vca = VCA_Find("tcp");
AN(vca);
error = vca->open(av, la, &err);
error = vca->open(av + 2, la, &err);
if (error)
ARGV_ERR("Got no socket(s) for %s (%s)\n", av[1], err);
......
......@@ -176,7 +176,7 @@ vca_tcp_open(char **av, struct listen_arg *la, const char **err)
ARGV_ERR("Unix domain socket addresses must be"
" absolute paths in -a (%s)\n", la->endpoint);
for (int i = 2; av[i] != NULL; i++) {
for (int i = 0; av[i] != NULL; i++) {
if (strchr(av[i], '=') == NULL) {
if (xp != NULL)
ARGV_ERR("Too many protocol sub-args"
......@@ -196,7 +196,7 @@ vca_tcp_open(char **av, struct listen_arg *la, const char **err)
AN(xp);
la->transport = xp;
return (VSS_resolver_range(av[1], "80", vca_tcp_open_cb, la, err));
return (VSS_resolver_range(la->endpoint, "80", vca_tcp_open_cb, la, err));
}
int
......
......@@ -181,7 +181,7 @@ vca_uds_open(char **av, struct listen_arg *la, const char **err)
heritage.min_vcl_version = vmax(heritage.min_vcl_version, 41U);
for (int i = 2; av[i] != NULL; i++) {
for (int i = 0; av[i] != NULL; i++) {
char *eq, *val;
int len;
......
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