Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
f52e7c3f
Unverified
Commit
f52e7c3f
authored
Sep 05, 2024
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
mgt_acceptor.c
bin/varnishd/acceptor/mgt_acceptor.c
+1
-1
mgt_acceptor_tcp.c
bin/varnishd/acceptor/mgt_acceptor_tcp.c
+2
-2
mgt_acceptor_uds.c
bin/varnishd/acceptor/mgt_acceptor_uds.c
+1
-1
No files found.
bin/varnishd/acceptor/mgt_acceptor.c
View file @
f52e7c3f
...
...
@@ -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
);
...
...
bin/varnishd/acceptor/mgt_acceptor_tcp.c
View file @
f52e7c3f
...
...
@@ -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
...
...
bin/varnishd/acceptor/mgt_acceptor_uds.c
View file @
f52e7c3f
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment