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
b932d06e
Commit
b932d06e
authored
Mar 13, 2020
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use our DNS canary in the test suite
Closes #3237
parent
b39b8b2b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
v00016.vtc
bin/varnishtest/tests/v00016.vtc
+1
-1
vtc_misc.c
bin/varnishtest/vtc_misc.c
+5
-5
No files found.
bin/varnishtest/tests/v00016.vtc
View file @
b932d06e
...
...
@@ -85,7 +85,7 @@ varnish v1 -errvcl {Regexp compilation error:} {
varnish v1 -errvcl {resolves to too many addresses} {
backend b { .host = "127.0.0.1"; }
sub vcl_recv {
if (remote.ip == "
fastly.com
") {}
if (remote.ip == "
dns-canary-multi.varnish-cache.org
") {}
}
}
...
...
bin/varnishtest/vtc_misc.c
View file @
b932d06e
...
...
@@ -354,21 +354,21 @@ dns_works(void)
char
abuf
[
VTCP_ADDRBUFSIZE
];
char
pbuf
[
VTCP_PORTBUFSIZE
];
sa
=
VSS_ResolveOne
(
NULL
,
"
varnish
.org"
,
NULL
,
sa
=
VSS_ResolveOne
(
NULL
,
"
dns-canary.varnish-cache
.org"
,
NULL
,
AF_INET
,
SOCK_STREAM
,
0
);
if
(
sa
==
NULL
)
return
(
0
);
VTCP_name
(
sa
,
abuf
,
sizeof
abuf
,
pbuf
,
sizeof
pbuf
);
free
(
sa
);
if
(
strcmp
(
abuf
,
"1
76.58.90.154
"
))
if
(
strcmp
(
abuf
,
"1
92.0.2.255
"
))
return
(
0
);
sa
=
VSS_ResolveOne
(
NULL
,
"
varnish
.org"
,
NULL
,
sa
=
VSS_ResolveOne
(
NULL
,
"
dns-canary.varnish-cache
.org"
,
NULL
,
AF_INET6
,
SOCK_STREAM
,
0
);
if
(
sa
==
NULL
)
return
(
0
);
return
(
1
);
/* the canary is ipv4 only */
free
(
sa
);
return
(
1
);
return
(
0
);
}
/* SECTION: feature feature
...
...
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