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
4195327e
Commit
4195327e
authored
Sep 05, 2018
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a dedicated short-TTL'ed FQDN for testing if DNS works.
parent
5141161f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vtc_main.c
bin/varnishtest/vtc_main.c
+2
-2
No files found.
bin/varnishtest/vtc_main.c
View file @
4195327e
...
...
@@ -441,7 +441,7 @@ dns_cb(void *priv, const struct suckaddr *sa)
int
*
ret
=
priv
;
VTCP_name
(
sa
,
abuf
,
sizeof
abuf
,
pbuf
,
sizeof
pbuf
);
if
(
strcmp
(
abuf
,
"1
30.225.244.222
"
))
{
if
(
strcmp
(
abuf
,
"1
92.0.2.255
"
))
{
fprintf
(
stderr
,
"DNS-test: Wrong response: %s
\n
"
,
abuf
);
*
ret
=
-
1
;
}
else
if
(
*
ret
==
0
)
...
...
@@ -455,7 +455,7 @@ dns_works(void)
int
ret
=
0
,
error
;
const
char
*
msg
;
error
=
VSS_resolver
(
"
phk
.freebsd.dk"
,
NULL
,
dns_cb
,
&
ret
,
&
msg
);
error
=
VSS_resolver
(
"
dns-canary
.freebsd.dk"
,
NULL
,
dns_cb
,
&
ret
,
&
msg
);
if
(
error
||
msg
!=
NULL
||
ret
!=
1
)
return
(
0
);
return
(
1
);
...
...
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