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
539961be
Commit
539961be
authored
Mar 23, 2015
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass protocol info into DNS iterator
parent
e83ea40d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
mgt_acceptor.c
bin/varnishd/mgt/mgt_acceptor.c
+6
-2
No files found.
bin/varnishd/mgt/mgt_acceptor.c
View file @
539961be
...
...
@@ -115,6 +115,8 @@ struct mac_help {
const
char
*
name
;
int
good
;
const
char
**
err
;
const
char
*
proto_name
;
enum
sess_step
first_step
;
};
static
int
__match_proto__
(
vss_resolver_f
)
...
...
@@ -132,8 +134,8 @@ mac_callback(void *priv, const struct suckaddr *sa)
AN
(
ls
);
ls
->
sock
=
-
1
;
ls
->
addr
=
sa
;
ls
->
first_step
=
S_STP_H1NEWSESS
;
ls
->
proto_name
=
"HTTP/1"
;
ls
->
proto_name
=
mh
->
proto_name
;
ls
->
first_step
=
mh
->
first_step
;
fail
=
mac_opensocket
(
ls
,
NULL
);
if
(
ls
->
sock
<
0
)
{
*
(
mh
->
err
)
=
strerror
(
fail
);
...
...
@@ -180,6 +182,8 @@ MAC_Arg(const char *arg)
AN
(
mh
);
mh
->
name
=
av
[
1
];
mh
->
err
=
&
err
;
mh
->
first_step
=
S_STP_H1NEWSESS
;
mh
->
proto_name
=
"HTTP/1"
;
error
=
VSS_resolver
(
av
[
1
],
"80"
,
mac_callback
,
mh
,
&
err
);
if
(
mh
->
good
==
0
||
err
!=
NULL
)
ARGV_ERR
(
"Could not bind to address %s: %s
\n
"
,
av
[
1
],
err
);
...
...
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