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
f7715a8d
Commit
f7715a8d
authored
Nov 15, 2021
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mac: Add brackets around IPv6 endpoints
parent
b12e2df8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
mgt_acceptor.c
bin/varnishd/mgt/mgt_acceptor.c
+4
-1
No files found.
bin/varnishd/mgt/mgt_acceptor.c
View file @
f7715a8d
...
...
@@ -201,7 +201,10 @@ mac_tcp(void *priv, const struct suckaddr *sa)
ls
->
addr
=
VTCP_my_suckaddr
(
ls
->
sock
);
VTCP_myname
(
ls
->
sock
,
abuf
,
sizeof
abuf
,
pbuf
,
sizeof
pbuf
);
bprintf
(
nbuf
,
"%s:%s"
,
abuf
,
pbuf
);
if
(
VSA_Get_Proto
(
sa
)
==
AF_INET6
)
bprintf
(
nbuf
,
"[%s]:%s"
,
abuf
,
pbuf
);
else
bprintf
(
nbuf
,
"%s:%s"
,
abuf
,
pbuf
);
REPLACE
(
ls
->
endpoint
,
nbuf
);
}
VTAILQ_INSERT_TAIL
(
&
la
->
socks
,
ls
,
arglist
);
...
...
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